Home › Forums › WoodMart support forum › Double add to cart
Double add to cart
- This topic has 15 replies, 2 voices, and was last updated 6 years ago by Artem Temos.
-
AuthorPosts
-
November 27, 2018 at 5:06 pm #92075
PD11ParticipantHi,
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
November 27, 2018 at 6:03 pm #92088
Artem TemosKeymasterHello,
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
November 27, 2018 at 6:51 pm #92118
PD11ParticipantSure, see private content.
November 28, 2018 at 8:03 am #92168
Artem TemosKeymasterTry 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>
November 28, 2018 at 6:29 pm #92306
PD11ParticipantHi,
If I add the code in an html block in WPBakery, the code is shown. No button. How should I do it?
Best
Paul
November 28, 2018 at 6:30 pm #92308
Artem TemosKeymasterTry to use RAW HTML element for this purpose.
November 28, 2018 at 6:49 pm #92310
PD11ParticipantYeah that does not work. The code is just showing.
November 29, 2018 at 7:04 am #92350
Artem TemosKeymasterCould you please send us a link where we can check this?
November 29, 2018 at 2:24 pm #92496
PD11ParticipantSee private content.
November 29, 2018 at 3:27 pm #92522
Artem TemosKeymasterWe don’t see that code added to your home page.
November 29, 2018 at 3:28 pm #92524November 29, 2018 at 4:23 pm #92541
Artem TemosKeymasterYou added a wrong code. Take the code here, on the forum and place to the raw HTML element.
November 29, 2018 at 4:25 pm #92542
PD11ParticipantI 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>
November 29, 2018 at 8:04 pm #92584
Artem TemosKeymasterYes, this code is correct. But check your element, you added a different code.
December 1, 2018 at 1:10 pm #93066
PD11ParticipantHi Artem,
Ah yes, now I see. I’ve copied the code again, but the button is not working correctly unfortunately.
December 1, 2018 at 1:24 pm #93070
Artem TemosKeymasterWe just checked and the button works as expected. It just need to be styled a bit with CSS code.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register