New Landing How can we help? Themeforest Theme Support Dante Add to cart buttons reload the page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #260518
    danthalian
    Member
    Post count: 4

    When you add an item to the cart it:
    1. Makes a new page load
    2. The /?add-to-cart=45046 shows in the URL

    So if I reload the page
    1. Same product is added to the cart again
    2. If I remove a product and reload the page, it keeps removing until there are 0.

    Somehow seems Ajax is not working properly?

    #260730
    David Martin – Support
    Moderator
    Post count: 20834

    Please add your WP login details so I can check your WooCommerce settings.

    Thanks.

    #260866
    danthalian
    Member
    Post count: 4

    I actually fixed this.

    It seems that since Woocommerce 2.5, things in the loop changed and Dante 3.2.4 has not.

    So in order to get ajax to work again for add to cart buttons – you need to add the class:

    ajax_add_to_cart to the buttons in /loop/add_to_cart.php

    #260876
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Brilliant! I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register