Menu Cart and Favorites count problem in Header

Posted in: Newspaper
Post count: 6

Hi. My new woocommerce site is https://postista.com/

My problem is that when I add a product to my favorites or cart, it appears differently in the header of each page, or doesn’t appear at all. For example, I go to a product page and add it to my cart, but when I return to the homepage, the cart appears empty in the header. The same thing happens with the favorites button. You’ll easily understand if you try it on my site. Removing the LiteSpeed ​​cache plugin seems to solve the problem, but I want to fix this issue without removing the plugin. Thank you.

Post count: 6

Is there anyone who can help?

Post count: 35449

Hi,
This is a common situation when a cache plugin is used with a shop, so you should ask for LiteSpeed support, help they will know what you should exclude:
https://blog.litespeedtech.com/2017/05/31/wpw-fixing-lscachewoocommerce-conflicts/

To exclude cookies from the cache, enter the values of the cookies in the Never Cache Cookies field:
woocommerce_cart_hash
woocommerce_items_in_cart
wp_woocommerce_session
woocommerce_recently_viewed

Thank you!

Post count: 6

I think my problem is solved. Test it for a while.

Thank you very much Calin.

Post count: 6

After adding an item to the cart, both the cart counter and the favorites counter work correctly. However, the favorites counter doesn’t work properly even before adding an item to the cart. Is another line needed for the favorites counter?

Post count: 35449

Hi,
For favorit, please exclude the tdw_favourites

Post count: 6

The values ​​you provided are really helpful. However, this time, after adding a product to favorites, the pages start loading slowly. It’s like I’m visiting that page for the first time. I know this isn’t related to you. Thank you so much. I guess I won’t use a caching plugin. There doesn’t seem to be another way.

Post count: 35449

Hi,
This may be due to a large number of cookies and other elements that are no longer cached. As a result, the page is loading without cached data, which increases the load time.
Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.