Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to target non-purchasable item

$
0
0

Replies: 1

Hi there,

When an item is set as non-purchasable, I want to target the button on the single product page.

I know that I can use the woocommerce_single_product_summary action hook, but it is targeting ALL products. How can I set a conditional so that ONLY the non-purchasable items are affected?

Thanks,
Matt


Viewing all articles
Browse latest Browse all 59525

Trending Articles