How can I stop the 'add to cart' button taking customers straight to checkout?

cynthiasstudio
New Member
3 0 1

Hello. I have added the following code to show 'add to cart' button under my product grids. I added this in snippets  ->  product-card-grid.liquid

<form method="post" action="/cart/add">
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<input type="submit" value="Add to cart" class="btn" />
</form>

 

However, whenever I add the product to the cart, it takes me directly to the cart checkout page. I want customers to add to cart but to remain on the same page, and then manually go to the checkout themselves. How can I do that? I am using the Debut theme.

 

 

Reply 1 (1)
KetanKumar
Shopify Partner
36588 3628 11811

@cynthiasstudio 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing