-
AuthorPosts
-
February 20, 2024 at 6:31 am #1434851
When I am on a single product page and add the first product to the cart, the icon flashes “1” but then it is gone and it says “No product in the cart” even though there is one. Once I add a second item to the cart it seems to fix itself, it shows any new products added immediately.
I am not using ALB for the product page and I do not have any customizations to woocommerce.
When I am on a product category page and click “add to cart” it does show the first item in the cart icon count immediately.
When I am on the cart page and remove all the items from the cart, the cart icon still has the count that loaded on the page originally, even though there are no products left in the cart.
I deactivated all the plugins that were not woocommerce and the issue still occurs.
Thanks,
RenitaFebruary 23, 2024 at 6:32 am #1435157This is happening on more than one of my sites. Any insight as to why?
February 23, 2024 at 6:44 pm #1435244Hi,
Thanks for your patience, I see this on your site, and I note that adding multiple items from the same product page doesn’t show the product count, it will only show if you go to another product or the cart page. I’m not able to reproduce this on our demo page, so perhaps this is a plugin conflict, try disabling all of your plugins, including cache and If that resolves the issue, reactivate each one individually until you find the conflict.Best regards,
MikeFebruary 23, 2024 at 10:48 pm #1435254I tried disabling all the plugins before posting the topic. That did not resolve it. I do not have a caching plugin and I am not using the caching settings built into the theme. So I don’t think that is the issue. Just in case I tried it in an incognito tab and cleared caches. It still did not work.
February 25, 2024 at 3:37 pm #1435359Hi,
Thanks, I see your site is using PHP v7.4.33, try updating to v8 and check again.Best regards,
MikeFebruary 27, 2024 at 5:27 am #1435519I updated the PHP version and tried again. it still is happening.
March 3, 2024 at 6:36 pm #1436149Hi,
Thanks for your patience, I asked the rest of the team for ideas about this but we didn’t have any and we are not able to reproduce this on our test sites, but I check your site again and noticed that the add to cart buttons on the page linked below work correctly and the item shows in the cart icon without reloading the page.
But when you go to one of the product pages the add to cart button works at first but then quickly the page reloads which clears the cart icon. I believe it is this reloading of the page that causes the error, on our demo site the page doesn’t reload when you add a item to the cart.
Do you have any scripts that have a onclick function that might cause the page to reload?
I was not able to login and check.Best regards,
MikeMarch 3, 2024 at 7:28 pm #1436155I appreciate you continuing to look into this. I don’t know of any scripts. I put more info in the private content section. Let me know if you are able to login with that. Renita
March 3, 2024 at 9:05 pm #1436168 -
AuthorPosts
- You must be logged in to reply to this topic.