• Resolved karamakhras

    (@karamakhras)


    I have a plugin that shows a discount bar and calculates the discount based on the amount that is added to the cart, although when I use the cache system it breaks.
    Is there a way to disable this plugin from getting cached? or disabling the whole woocommerce caching if that is not possible? Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter karamakhras

    (@karamakhras)

    Thread Starter karamakhras

    (@karamakhras)

    Problem is only with page cache

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @karamakhras

    Thank you for reaching out and I am happy to assist you with this.
    I’ve checked your website, and I see that Page Caching is active. I’ve tried to add the products and get to the 10% discount and everything is working as expected. The bar fills to 10% and once I click on the checkout, the 10% discount is added.

    Can you please confirm you are still experiencing the problem?
    Thanks!

    Thread Starter karamakhras

    (@karamakhras)

    Thank you for your quick respond!
    I have disabled the cache for the shop page, I will enable it to make it viewable by your side.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @karamakhras

    Thank you for your reply.
    Yes, I can see that once the page is reloaded the discount does not change.
    As per WooCommerce suggestion, the shop page should be excluded from caching. However, there are some things that you can try besides that. The best solution would be if that discount bar could fire with ajax, however, I am not sure if the plugin you are using has that ability.
    You can also try to disable expires header and cache-control header for HTML&XML in Performance>Browser Cache, to avoid the page being cached in the browser and see if that helps!
    Alternatively, the solution is to use Page Fragment Caching and use <mfunc> to war the PHP code in the specific template and exclude it from the Page Caching.
    You can check more details about Page Fragment Caching in our FAQ.

    I hope this helps!

    Thanks!

    Thread Starter karamakhras

    (@karamakhras)

    Thankyou so much! I will try them out 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problems With Woocommerce Additional Plugins’ is closed to new replies.