Home Forums WoodMart support forum Double add to cart

Double add to cart

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #92075

    PD11
    Participant

    Hi,

    On the homepage of my website, the add to cart button does not work like it should. It adds 2 products in the cart instead of 1. I can’t figure out what is wrong here, as I followed the right instructions and examples (used a add to cart link).

    Could you please check? Thanks!

    Best,

    Paul

    #92088

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #92118

    PD11
    Participant

    Sure, see private content.

    #92168

    Artem Temos
    Keymaster

    Try to use AJAX add to cart button instead. You can add it as an HTML code

    <a href="/?add-to-cart=1449" data-quantity="1" class="btn btn-scheme-light btn-scheme-hover-light btn-style-default btn-shape-semi-round btn-size-large button product_type_simple add_to_cart_button ajax_add_to_cart add-to-cart-loop" data-product_id="1449" data-product_sku="" rel="nofollow"><span>In winkelwagen</span></a>

    #92306

    PD11
    Participant

    Hi,

    If I add the code in an html block in WPBakery, the code is shown. No button. How should I do it?

    Best

    Paul

    #92308

    Artem Temos
    Keymaster

    Try to use RAW HTML element for this purpose.

    #92310

    PD11
    Participant

    Yeah that does not work. The code is just showing.

    #92350

    Artem Temos
    Keymaster

    Could you please send us a link where we can check this?

    #92496

    PD11
    Participant

    See private content.

    #92522

    Artem Temos
    Keymaster

    We don’t see that code added to your home page.

    #92524

    PD11
    Participant

    see attachment

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

    Artem Temos
    Keymaster

    You added a wrong code. Take the code here, on the forum and place to the raw HTML element.

    #92542

    PD11
    Participant

    I did! It is the same code, right? So what is going wrong then? It is the same code you provided.

    <a href="/?add-to-cart=1449" data-quantity="1" class="btn btn-scheme-light btn-scheme-hover-light btn-style-default btn-shape-semi-round btn-size-large button product_type_simple add_to_cart_button ajax_add_to_cart add-to-cart-loop" data-product_id="1449" data-product_sku="" rel="nofollow"><span>In winkelwagen</span></a>

    #92584

    Artem Temos
    Keymaster

    Yes, this code is correct. But check your element, you added a different code.

    #93066

    PD11
    Participant

    Hi Artem,

    Ah yes, now I see. I’ve copied the code again, but the button is not working correctly unfortunately.

    #93070

    Artem Temos
    Keymaster

    We just checked and the button works as expected. It just need to be styled a bit with CSS code.

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