Hi,
You can use is_single().
E.g: is_single(1) will target product id=1
is_single(array(1,2,3)) will target product id=1, 2 and 3
See more at https://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page
Regards
Confirmed working, cheers!
Spoke too soon. On the product page in question the ‘gift icon’ loads first, then slides out and the pop up loads. Sometimes the popup flickers first before this sequence. This does not occur when ‘is_product()’ is used. And it does not appear to happen on other product pages. We have a one product site with some other products in the background not reachable through a shop, so that specific product page has extra functionality/ potential for conflicts than the other ‘plain’ product pages.
Target page: https://odornuke.com/product/urine-odor-remover-eliminator-tablet/
Hi,
What is the value of “Subscription reminder if not subscribe” in Coupon Box for WooCommerce settings?
The popup is supposed to load first at the first time a customer visits your page.
The value is 1 hour. Should we try something else?
Thanks
I think that you should check the option “Subscription reminder if not subscribe” again to see if it’s 1 second or 1 hour because when the popup shown and i click close, the expected cookie is not set.
Thank you team. For future reference for WP Rocket users, the fix was to add “woo_coupon_box” to the Never Cache Cookies section.