Home › Forums › WoodMart support forum › Add to cart – mini cart functionalities are broken with WP Rocket
Add to cart – mini cart functionalities are broken with WP Rocket
- This topic has 9 replies, 2 voices, and was last updated 11 months, 1 week ago by Artem Temos.
-
AuthorPosts
-
January 15, 2024 at 2:58 pm #529933
maxgertzenParticipantHi,
I couldn’t find a solution in the forums, so I’m trying my luck here.Recently, I optimised my website and installed WP Rocket. I have minification, delayed execution of JS files, and caching.
I’m facing two acute issues:
1. On clicking “Add To Cart”, the mini cart is not being opened, and the quantity in the cart icon is not updated. Also, the product doesn’t add to the mini cart (if you open it on click). Only when you refresh the page you can see the added amount.
2. When changing quantities in the mini cart, there’s an infinite loader on the product line, and nothing happens – it’s stuck. The network tab shows that the Ajax request is successful (200).
I’ve added all the documented exclusions related to your theme, which didn’t help. As well as excluding cart fragments of woocommerce, etc.
I see that when a user is logged in, this problem doesn’t occur – which means there is a 98% chance of a caching issue (no cache for logged-in users). So, probably, it’s a missing exclusion or incompatibility of your theme with caching mechanisms.
Unfortunately, I can’t deactivate plugins as you always request, as our site is live and has many visitors. Ideally, you can tell me which files/fixes must be added or excluded to fix this issue. I’ve also used your patcher to fix the cart fragments, which didn’t help.
Maybe late at night, I can deactivate, but it’s far from ideal as we need a solution as soon as possible.I’m adding FTP and WP user details.
I’ll need to whitelist your IPs so you can access our website outside our country.Please assist
Attachments:
You must be logged in to view attached files.January 15, 2024 at 3:58 pm #529972
Artem TemosKeymasterHello,
Currently, we are not able to visit your website and get the following error https://gyazo.com/343d9be9e2549121da9eb515333aa6aa
My IP is 176.98.71.123Kind Regards
January 15, 2024 at 4:14 pm #529983
maxgertzenParticipantHey Artem,
I’ve whitelisted this IP – please try again.
Let me know if it works or you need another IP listed.
Also, do you want me to open access to the FTP for this IP?January 15, 2024 at 5:49 pm #530035
Artem TemosKeymasterAs we can see, there are some conflicts with installed plugins. If you can’t disable them on your live website, please, create a staging copy where you will be able to perform such kinds of tests.
Kind Regards
January 15, 2024 at 6:30 pm #530060
maxgertzenParticipantCreated a staging site for you, adding details below.
Which plugins create the conflict?
As I said – this is directly an issue of your theme with the WP Rocket cache because when the user is logged in – these bugs don’t happen (no cache for logged-in users, yet).
So again – it’s about which file to exclude caching or delayed execution.Your theme should work with caching plugins, especially a popular one like WP Rocket, so please advise.
January 15, 2024 at 6:42 pm #530064
Artem TemosKeymasterSorry, but admin credentials seem to be wrong and we can’t log in on your staging website.
January 15, 2024 at 7:20 pm #530083
maxgertzenParticipantHey Artem,
Adding new credentials, please try againJanuary 16, 2024 at 11:31 am #530226
Artem TemosKeymasterPlease, keep all plugins that are not related to our theme (except WP Rocket) temporarily turned off. Also, you need to update the theme to the latest version.
January 18, 2024 at 3:55 pm #531220
maxgertzenParticipantHi Artem,
Thank you for your ongoing support. Following your advice, I’ve temporarily deactivated all non-essential plugins and ensured the theme is updated to the latest version. However, I’ve noticed that the issue persists specifically when my custom plugin is activated (radical form plugin). This plugin is a React-based form implementation with a REST API and one wp-admin AJAX request. Notably, one of its requests triggers the wc_fragment_refresh event, which might be related to the issue at hand.
I understand the complexities involved and appreciate your team’s expertise in resolving such conflicts. Could you please provide further guidance on maintaining my custom plugin’s functionality while ensuring compatibility with the WoodMart theme and WP Rocket? Your insights would be incredibly valuable in finding a balanced solution.
Looking forward to your helpful response
January 19, 2024 at 10:18 am #531417
Artem TemosKeymasterHello,
Sorry, but our support doesn’t cover fixing problems that are caused by 3rd party plugins. We would be happy to help but we can’t know what exactly in this plugin can break this.
Kind Regards
-
AuthorPosts
Tagged: add to cart, mini cart, woocommerce, WP Rocket
- You must be logged in to create new topics. Login / Register