Changing Woo product page based on Selected variation
-
Hi All,
Really struggling on this one – I think I need to get JS involved but I’m sure how to implement it. Here goes:
I have written PHP to display a shipping countdown – ie. ‘Recieve tomorrow if you purchase within 2 hours 5mins’ on product pages. It works great for simple products, but variations are more challenging.
I need to pull the currently selected variation of the product and then if it’s not in stock,
display:none
my countdown.Any ideas? I’ve seen loads of code for JS but I don’t know how to make that work the way I need it to because it can’t then pass to php.
Thanks in advance ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Changing Woo product page based on Selected variation’ is closed to new replies.