• Resolved yudhisthirnahar

    (@yudhisthirnahar)


    Home Page and category page ajax add to cart not working. It gives js error after clicking on ajax add to cart.
    Apart from this issue This plugin is awesome. Please check it as soon as possible.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Conversios

    (@tatvic)

    Hi @yudhisthirnahar,

    Thanks for appreciating us.

    Before We answer your query, We would like to mention that this version of our plugin works smoothly on stores and webpages that follow the standard WooCommerce integration.

    This version of our plugin doesn’t capture add_to_cart data at the Home page as almost all the WooCommerce sites have a custom Home page and for a standard product, it is not possible to cater the custom requirement.

    We have had a look at your store to check the issue on the category page. We could not find any errors in the console and also observed that add_to_cart classes are standard.

    So we think there must be something which is blocking the tracking of add_to_cart at the category page. Our best guess is that there might be tags and triggers set via GTM to capture events(maybe add_to_cart) at the category page and those may be blocking the add_to_cart at the category page.

    Hope this helps.

    Thread Starter yudhisthirnahar

    (@yudhisthirnahar)

    i have just made change in js to hide the error in console

    Plugin Author Conversios

    (@tatvic)

    Hi @yudhisthirnahar,

    We have looked at the code level and found the reason why the add_to_cart is not working? Because the add_to_cart button is coded within the anchor tag.

    To track the add_to_cart events, the add_to_cart button should be coded within button tag which you have done on the product detail page.

    We hope this should resolve your issue.

    Plugin Author Conversios

    (@tatvic)

    Hi @yudhisthirnahar,

    Assuming the issue at hand has been resolved therefore we are closing this topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ajax add to cart not working’ is closed to new replies.