Duplicating "Add to cart" button on a product page

Shopify Partner
3 0 0

Hi

I'm working with "Alchemy" them and I'm trying to add one or two more "add to cart" buttons on the bottom of the page (duplicating the one on the top of the page).

The product is simple - with no variants / sizes etc... one simple button.

Is there a simple possibility to do that?

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
591 0 45

You can manage the cart using the AJAX API, such that when the button is clicked you add the product to the cart that way. This makes it such that you don't require all the form setup that you would if you were to implement it purely in liquid.

You can play around with the AJAX API here.

0 Likes