Quantcast
Channel: Apply different tax based on user role and product category (Woocommerce) - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Reigel Gallarde for Apply different tax based on user role and...

Taxes are calculated per lines of items in the cart.. you don't have to loop the cart items. Instead, check if the current item has the category you are looking for.try it like this...add_filter(...

View Article


Apply different tax based on user role and product category (Woocommerce)

I need apply a different tax if the user have a specific role, but only in certains product's categories.Example: if customer A with role "Vip" buy an item of category "Bravo" or "Charlie" the tax...

View Article
Browsing latest articles
Browse All 2 View Live