• Hello,

    I’m using a button with that link : ?add-to-cart=50144&quantity=1

    It adds my product to the cart, but there is no ajax function, the page is reloaded. When it is a classical “Add to cart” button on my product page, it’s working well. Could you help me? Thanks!

    Thank for your answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same issue for me. I created an “add to cart” link and planted it on another page but I have the same problem, the page reloads when I click on add to cart.

    Any help will be appreciated.

    Plugin Author xootix

    (@xootix)

    Your HTML should look like this

    ?<a data-quantity="1" class="add_to_cart_button ajax_add_to_cart" data-product_id="26">Add to cart</a>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom add to cart button with Ajax’ is closed to new replies.