based on "Quantity discount on 2nd item only in Woocommerce" answer code to one of my pervious questions, I would like help on how to add a if statement for has_term()
and that way, make this code applicable only for one or more categories.
Any track will be appreciated.
The following will extend your code for defined product categories using WordPress
has_tem()
conditional function:Code goes in function.php file of your active child theme (or active theme). Tested and works.