Hey
I’m looking for the same trick and I found this
it works for me
/**
* Apply a different tax rate based on the user role.
*/
function wc_diff_rate_for_user( $tax_class, $product ) {
if ( is_user_logged_in() && current_user_can( 'administrator' ) ) {
$tax_class = 'Zero Rate';
}
return $tax_class;
}
add_filter( 'woocommerce_product_tax_class', 'wc_diff_rate_for_user', 1, 2 );
=> Woo Page
Ok
Can you give me the CSS part to start, please
Thx
Exactly what I Want
Thx
Ok Thx
I looked for a solution without success but I will try again
I built this Hook but it doesn’t work like I want
add_action( 'woocommerce_before_shop_loop', 'add_product_count_view', 10);
function add_product_count_view() {
$terms = get_the_terms( $post->ID,'product_cat' );
foreach( $terms as $term )
{
echo 'Product Category: '
. $term->name
. ' - Count: '
. $term->count;
}
}
Perfect
Thx :)