• Resolved charlieve02

    (@charlieve02)


    Hi

    I installed your plugin but add to carts stopped working. It loads the cart page but empty.

    I tested some things and found that it only happens in a single product page, but If you add to cart from the main url or shop page (/products/) it works.

    Also this problem only happens when I activate this option: Strip response cookies on pages that should be cached. If I desactivate this option, the cart page does load the products. But I would get an error when doing a test page cache.

    I also implemented your guide for using “Remove Cache Buster Query Parameter” feature. But still had the same problem with the cart page.

    Here you can see the header I got from the cart page:

    https://privatebin.support-tools.com/?b92e1fbfc4b1180a#z60lmWi+IgycIeQpKTHTyCzEnICR+QGtZ8mVWGtGCvs=

    FYI while using your plugin I deactivated Litespeed cache.

    Currently I got your plugin deactivated because that issue affects my sales negatively.

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @charlieve02,
    As you can see in the response header that you have provided this plugin is not caching the cart page. It might be possible that the issue is coming from Litespeed cache plugin. Have you tried disabling Litespeed Cache page caching system when using this plugin?

    Thread Starter charlieve02

    (@charlieve02)

    Hi

    As described before, I deactivated the litespeed cache plugin while using your plugin. I did again another but the problem still persists. I disabled the cache settings inside the plugin before deactivating it to make sure litespeed cache is not working.

    This is the new header I got from the cart page:

    https://privatebin.support-tools.com/?3d092623061cdf92#r4QwW1+KQnlJlTtCwViw/6/Lf1jx72MyhYNbROhcxx4=

    This problem only happens when I activate this option: Strip response cookies on pages that should be cached. If I desactivate this option, the cart page does load the products. But I would get an error when doing a test page cache.

    ?Also it only happens in a single product page, but If you add to cart from the main url or shop page (/products/) it works.

    Plugin Contributor iSaumya

    (@isaumya)

    Ah! Strip response cookies on pages that should be cached option will supposed to give you that issue. That’s why that option has that big warning banner below it. When you enable that option it removes all the cookies and as s result your cart breaks. Don’t enable that option especially on an ecommerce website.

    Thread Starter charlieve02

    (@charlieve02)

    Is there a work around to this in order to cache product pages using your plugin? When I deactivate this option and click the test page cache button it gives an error

    Weird thing is that when I used your plugin a year and half ago I didnt had this problem

    Thread Starter charlieve02

    (@charlieve02)

    Heres a screenshot of ther error I get when I deactivate the option “Strip response cookies on pages that should be cached”:

    https://privatebin.support-tools.com/?59e841a52402bb31#JMXwVI5+4TaxbBDpVZDU41KIwFKsKBYbJGpDSBE6eIE=

    And heres’s the header of the main url with this option deactivated:

    https://privatebin.support-tools.com/?0fe370fdcb79ec6b#QDJ8OExUBoa6xGZRkREshUeYdPpGQd0RNm//fWWZMnE=

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    As per your screenshot, I can see a cookie named pbid is getting added to the page. You need to check which plugin is adding that cookie and remove that instead of enabling the stripe response cookie option – as it will break eCommerce integrations.

    Thread Starter charlieve02

    (@charlieve02)

    Hi

    I managed to find the cookie and removed it. It seems my site is working fine and its getting cached.

    Do you recommend me to implement your guide for using “Remove Cache Buster Query Parameter”? What would the benefits be? and are there any cons?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @charlieve02,
    Sure you can implement the cache rule and get rid of the cache buster query param. But this is mainly for advanced users who are confortable addings rules and stuffs inside their Cloudflare account.

    Thread Starter charlieve02

    (@charlieve02)

    Hi I implemented the cache rule. It removed the query param ?swcfpc=1 on all pages except in the cart page. This only happens while logged in. Can you check it? and how to fix it? or is it normal?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @charlieve02,
    If you have enabled the option inside the plugin settings page then you should not be seeig that query param at all. Did you purged the whole cache after enabling that option?

    Thread Starter charlieve02

    (@charlieve02)

    Yes, I enabled the option inside the plugin settings page. I purged the whole cache and the issue still persists

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @charlieve02,
    I just visited your website and able to add items to cart normally without any issues. Screenshot:

    Thread Starter charlieve02

    (@charlieve02)

    Hi

    Yes. that issue is resolved. In my last reply I was talking about the query param ?swcfpc=1. It wasnt remove from the cart page. But this only happens if you are logged in.

    ?I enabled the option inside the plugin settings page and purged the whole cache.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @charlieve02,
    This is so wired as when you turn on the disable query pram option inside the plugin settings, it doesn’t load that query param anymore. Super wired.

    Thread Starter charlieve02

    (@charlieve02)

    Hi

    What can I do to fix it? Can you help me?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Add to cart not working’ is closed to new replies.