Add to cart button for picture and text section

Hey there,

I want to change the function of the buttons, which show on the product page.

The buttons are located at the picture and text section. I want them to add the product to the cart.

This is my store: https://wolkenweile.de/products/bestellen

How do I do that?

Thank you all for helping!

@nils02 do you mean the buttons in the product description?

which currently have this link https://wolkenweile.de/products/bestellen

yes, exactly. I want the buttons to add the product to the slidecart

@nils02 change the button code to


make sure you use the correct CSS on the buttons.

change the id value to the product’s variation value.

Note: this code only works for products with variations. It won’t work for a single product.

In case you don’t know how to do this, I’ll do this for you.

Contact me via email here and I’ll give you a proper quote for the same.

Edit: you have to manually add this code and it’s product variant id to each description manually. It is not gonna grab the Id directly. Plus it won’t work on single product.

Finally you can check it’s working demo here

https://kodekult-dev-001.myshopify.com/products/leather-anchor

Password is kk

Best Regards,

Atik

Thanks so much! Where exactly do I have to add this? I am using the Sense theme.

@nils02 so you add this code over the buttons in the description.

Do you have experience with coding? If not then I wouldn’t recommend doing it on a live store.

Better to hire help.

Regards.