Home › Forums › WoodMart support forum › Split: Ajax “Add to Cart”
Split: Ajax “Add to Cart”
- This topic has 14 replies, 3 voices, and was last updated 2 years ago by Artem Temos.
-
AuthorPosts
-
November 23, 2022 at 5:42 am #422985
marvinlimson2007ParticipantIs there any update to this? I’m having the same issue. I’ve tried disabling all plugins except the ones listed above.
November 24, 2022 at 5:19 am #423330
Elise NoromitMemberHello,
Could you kindly check the site admin access, I cannot log in.
Please, confirm the permission for plugins deactivation, and switching to the parent theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
November 24, 2022 at 1:57 pm #423470
marvinlimson2007ParticipantHello Elise,
Turns out my friend couldn’t fix this issue. I’ve updated and attached the login credentials below.
It may or may not be related but the last thing I’ve added to the site before the ajax add to cart broke was Facebook for Woocommerce. I’ve already tried disabling all but the essential plugins (Facebook included) but the ajax add to cart was still broken.Regards,
MarvinNovember 24, 2022 at 3:36 pm #423506
Artem TemosKeymasterHello,
Could you please test how it works without AJAX add-to-cart option enabled? Try to disable it on Theme Settings -> Single product -> Add to cart.
Kind Regards
November 25, 2022 at 5:12 am #423725
marvinlimson2007ParticipantHello Artem Temos and Elise,
From here on out I will reply here and not on the original thread since I assume mine is a separate case. On the other thread Elise replied to me asking I should disable the plugins and revert to the original Woodmart Theme instead of using the child theme, and then de-activate the Ajax add to cart. I’ve tried a couple more and logged the results:
1. Woodmart Theme, Ajax Add to Cart Enabled, Only essential plugins activated – Clicking add to cart did not do anything, only loading animation was present. Item was added to cart upon page refresh and there was a notification telling me it was added.
2. Woodmart Theme, Ajax Add to Cart Disabled, Only essential plugins activated – Clicking add to cart refreshes the page . Item was added to cart upon page refresh and notification of item being added to cart was present.
3. Woodmart Child Theme, Ajax Add to Cart Enabled, Only essential plugins activated – Clicking add to cart did not do anything, only loading animation was present. Item was added to cart upon page refresh and there was a notification telling me it was added.
4. Woodmart Child Theme, Ajax Add to Cart Disabled, Only essential plugins activated – Clicking add to cart refreshes the page . Item was added to cart upon page refresh and notification of item being added to cart was present.
5. Woodmart Child Theme, Ajax Add to Cart Enabled, All plugins activated – Clicking add to cart did not do anything, only loading animation was present. Item was added to cart upon page refresh and there was a notification telling me it was added.
6. Woodmart Child Theme, Ajax Add to Cart Disabled, All plugins activated – Clicking add to cart refreshes the page . Item was added to cart upon page refresh and notification of item being added to cart was present.
Pretty much the behaviour across all situations was similar. The only factor that could reliably predict the behaviour was if the “Ajax add to cart” setting was enabled or not.
What should I do next?
November 25, 2022 at 11:43 am #423784
Artem TemosKeymasterOK, thank you. Could you please temporarily disable all external plugins and switch to the parent theme so we can test from our side?
November 25, 2022 at 12:35 pm #423797
marvinlimson2007ParticipantHello Artem,
The plugins have been disabled and I have switched over to the parent theme. Anything else?
November 25, 2022 at 1:26 pm #423816
Artem TemosKeymasterPlease, disable Drop-ins and Must-use plugins also.
Also, we noticed that when we do any changes in the JS files it stays cached on the website. Please, disable this cache on your website so we could be able to troubleshoot the issue.
November 25, 2022 at 4:26 pm #423865
marvinlimson2007ParticipantHello Artem,
I have disabled all the unecessary plugins though(Please refer to the screenshot I attached as to which plugins are activated). My guess is the culprit could be the CDN godaddy provides. I have disabled it just now. Please do check if it’s working properly now.
Regards,
MarvinAttachments:
You must be logged in to view attached files.November 25, 2022 at 5:25 pm #423890
Artem TemosKeymasterWe still can’t edit the JS file https://marlimgear.com/wp-content/themes/woodmart/js/scripts/wc/addToCartAllTypes.min.js?ver=7.0.4
It is cached somehow.And Must use and Drop ins plugins are not turned off and can affect this. Here is a screenshot https://gyazo.com/fc5f371ead6c18e2b5a5649bec0afe9d
November 26, 2022 at 5:00 am #423952
marvinlimson2007ParticipantHi Artem,
I was able to remove the must use plugins at first by simply renaming the folder to “mu-plugins-disabled”. Suprisingly they reinstalled themselves a short while later (as you can see, i now have 3 folders of mu-plugins). The drop-in plugins are just as stubborn. I was able to remove advanced-cache.php. However, I’m having trouble removing the last 2 (object-cache.php and db-error.php). I tried removing them through SSH. But all I get is “Resource busy”. I don’t know if it’s relevant at all but it’s hosted by GoDaddy
Do you know of a method for me to remove these files in a more permanent manner?
Attachments:
You must be logged in to view attached files.November 26, 2022 at 5:02 am #423955
marvinlimson2007ParticipantHi Artem,
I forgot to send you the SSH details. Here you go.
November 28, 2022 at 11:23 am #424282
Artem TemosKeymasterHello,
We found the reason for the add-to-cart problem. It is caused by this plugin https://gyazo.com/ec39f7cdcef1758af850aede7a2da7a1
It seems to be installed by your hosting provider and creates some kind of custom redirect after adding a product to the cart. By doing this, it breaks the AJAX request. Please, contact your hosting provider for help on this matter.Kind Regards
November 28, 2022 at 1:30 pm #424345
marvinlimson2007ParticipantHi Artem,
Thanks for finding out the offending plugin. Ill try and see if I can contact their support team to see if they can do something about it.
Thank you
November 28, 2022 at 1:33 pm #424349
Artem TemosKeymasterGreat. Please, let me know about the result.
Thank you in advance.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register