Home Forums WoodMart support forum Split: Ajax “Add to Cart”

Split: Ajax “Add to Cart”

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #422985

    marvinlimson2007
    Participant

    Is there any update to this? I’m having the same issue. I’ve tried disabling all plugins except the ones listed above.

    #423330

    Hello,

    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

    #423470

    marvinlimson2007
    Participant

    Hello 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,
    Marvin

    #423506

    Artem Temos
    Keymaster

    Hello,

    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

    #423725

    marvinlimson2007
    Participant

    Hello 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?

    #423784

    Artem Temos
    Keymaster

    OK, thank you. Could you please temporarily disable all external plugins and switch to the parent theme so we can test from our side?

    #423797

    marvinlimson2007
    Participant

    Hello Artem,

    The plugins have been disabled and I have switched over to the parent theme. Anything else?

    #423816

    Artem Temos
    Keymaster

    Please, 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.

    #423865

    marvinlimson2007
    Participant

    Hello 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,
    Marvin

    Attachments:
    You must be logged in to view attached files.
    #423890

    Artem Temos
    Keymaster

    We 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

    #423952

    marvinlimson2007
    Participant

    Hi 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.
    #423955

    marvinlimson2007
    Participant

    Hi Artem,

    I forgot to send you the SSH details. Here you go.

    #424282

    Artem Temos
    Keymaster

    Hello,

    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

    #424345

    marvinlimson2007
    Participant

    Hi 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

    #424349

    Artem Temos
    Keymaster

    Great. Please, let me know about the result.

    Thank you in advance.

Viewing 15 posts - 1 through 15 (of 15 total)