Ajax Add to cart not working on product Grid

This topic has 4 replies, 2 voices, and was last updated 5 months, 2 weeks ago ago by Tony Rodriguez

  • Avatar: The CodeBlaster
    The CodeBlaster
    Participant
    November 27, 2023 at 10:03

    Everytime add to cart button clicked on product grid in archive page or home page the page refreshed and an ?add-to-cart=12345 (product id) variable append in URL.
    while on product detail pages its working fine.

    i have already enabled AJAX add to cart buttons on archives.
    i have tried all the other pugin disabled but no result.
    Kindly Help.

    3 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 27, 2023 at 12:52

    Hello, @The CodeBlaster,

    To solve your issue please follow the steps.

    1/ We suggest switching to the XStore Parent theme if you are currently using the XStore Child Theme on your site (Appearance > Themes). After clearing the cache, check again. The issue may be due to your Child Theme. Let us know the result.

    Please note that you should take a complete backup of your site before proceeding.

    2/ We suggest disabling all third-party plugins (including cache plugins) that do not come bundled with XStore (https://xstore.helpscoutdocs.com/article/36-included-plugins), clearing the cache of the browser, and then checking again. It is possible that one of the additional plugins is causing the issue.

    If the issue still persists, please keep all third-party plugins deactivated on your site and grant permission to debug your site, which includes deactivating all third-party plugins and on-site Customization. This will allow us to investigate and assist you accordingly.

    Please note that you should take a complete backup of your site before proceeding.

    In addition, please provide your site’s WP Admin URL and credentials in the private content area of this topic, so that we can look into it further:

    WP Admin URL:
    WP Admin Username:
    WP Admin Password:

    Thank you for your cooperation.

    Best Regards,
    8Theme’s Team

    Avatar: The CodeBlaster
    The CodeBlaster
    Participant
    November 27, 2023 at 15:46

    switching to the XStore Parent theme resolving the issue. on product grid add to cart button ajax is working fine.
    issue is with child theme only. kindly help to fix this issue.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 28, 2023 at 06:12

    Hello, @The CodeBlaster,

    We trust this message finds you well.

    Following our recent correspondence, it has come to our attention that the difficulties you are experiencing are isolated to the child theme of your website. To address this matter, we kindly request that you review any custom code that has been added to your child theme. It is possible that these customizations are contributing to the issue at hand.

    Should you ascertain that there have been no additional customizations made to your child theme, we recommend that you proceed with the removal of the current child theme that appears to be problematic. Once removed, please proceed to download & install a fresh copy of the child theme here: https://www.8theme.com/downloads/ -and verify if the issue persists.

    We are optimistic that these steps will lead to a resolution of the issue you are facing. Should you require further assistance or encounter any additional challenges, please do not hesitate to reach out to us.

    We appreciate your cooperation and look forward to ensuring a swift and satisfactory resolution.

    Warm regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Ajax Add to cart not working on product Grid’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.