Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

johnlanglois on "How to Check cart for Simple Product"

$
0
0

In WooCommerce 2.0.12 I have a filter, add_filter( 'woocommerce_add_to_cart_validation), that does not need to run if the product being added is a simple product.

Is there a variable I could check or a function call that would let me know that the product being added is a simple product so that I could just return?

Thanks


Viewing all articles
Browse latest Browse all 8245

Trending Articles