• Resolved Amal K

    (@amalendukundu2013)


    Hi,

    I am using notice type as ‘Woocommerce Notice’. The notice is showing n the single product page. Is it possible to show the notice to only cart and checkout page.

    This is causing issue with cache plugin. Once the single product page is cached with the notice, when the store is open, it does not remove the notice as the notice is part of the cached page. Since the cart and chckout pages are excluded from caching, I think it wont be a problem there.

    Regards,

    Amal

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Amal K

    (@amalendukundu2013)

    Hi

    Also one suggestion, in public.php file the code is written for ‘init’ action. Sometimes ‘wc_clear_notices’ is giving fatal error when the WooCommerce is not initialized well. May be init is too early. Can you use something loads late after the plugins loads like ‘template_redirect’ or some other action which fires after the plugins load?

    You have done a commendable job. Fantastic plugin!

    regards,

    Amal

    Plugin Author Sajjad Hossain Sagor

    (@sajjad67)

    Thanks for your insightful comment.. we will of course try to update the plugin code.. and maybe we will add a js callback for notice to avoid cache plugin conflict!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to exclude the notice on WooCommerce product page’ is closed to new replies.