ID, 'product_cat' ) );
$tag_count = sizeof( get_the_terms( $post->ID, 'product_tag' ) );
if (taxonomy_exists('product_brands')) {
$brands_count = sizeof( get_the_terms( $post->ID, 'product_brands' ) );
}
$props_count = 0;
$props_count_max = allstore_option('product_propscount');
if ($props_count < $props_count_max && $props_count_max !== 0) :
?>
get_sku() || $product->is_type( 'variable' ) ) && $props_count < $props_count_max ) : ?>
- get_sku() ) {
echo esc_html( $sku );
} else {
echo esc_html__( 'N/A', 'all-store' );
}
?>
get_id(), ', ', '- ' . _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'all-store' ) . ' ', '
' );
if ($cat_count > 0 && !empty($categories)) {
echo wp_kses_post($categories);
$props_count++;
}
}
?>
ID, 'product_brands' );
if ($brands_count > 0 && !empty($brands)) {
echo "- ".esc_html__('Brand: ', 'all-store')."";
foreach ($brands as $key=>$brand) {
echo ''.esc_html( $brand->name ).'';
if (($key+1) < count($brands)) {
echo ', ';
}
}
echo "
";
$props_count++;
}
}
?>
get_id(), ', ', '- ' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'all-store' ) . ' ', '
' );
if ($tag_count > 0 && !empty($tags)) {
echo wp_kses_post($tags);
$props_count++;
}
}
?>
has_weight() && $props_count < $props_count_max ) : ?>
- get_weight() ) ); ?>
has_dimensions() && $props_count < $props_count_max ) : ?>
- get_dimensions( false ) ) ); ?>
get_attributes();
if (!empty($attributes)) :
$int_key = 0;
foreach ( $attributes as $attribute ) :
if ($props_count >= $props_count_max) {
break;
}
?>
-
get_name() )); ?>:
is_taxonomy() ) {
$attribute_taxonomy = $attribute->get_taxonomy_object();
$attribute_values = wc_get_product_terms( $product->get_id(), $attribute->get_name(), array( 'fields' => 'all' ) );
foreach ( $attribute_values as $attribute_value ) {
$value_name = esc_html( $attribute_value->name );
if ( $attribute_taxonomy->attribute_public ) {
$values[] = '' . $value_name . '';
} else {
$values[] = $value_name;
}
}
} else {
$values = $attribute->get_options();
foreach ( $values as &$value ) {
$value = esc_html( $value );
}
}
echo wp_kses_post( apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ) );
?>
0 && !$all_props_showed) : ?>