digitalhydra
5/2/2017 - 12:53 AM

check if product is in cat

check if product is in cat

if( has_term( array( 'laptop', 'fridge', 'hats', 'magic wand' ), 'product_cat' ) ) :

// Do stuff here

else :

// Do some other stuff

endif;