How To Add Add To Cart Button On My Collection Page

1 0 0
I am using Ride theme. I need to add "add to cart" button on my collection pages. 
Please see attached file.
Open Snippets -> card-product.liquid


<form method="post" action="/cart/add" id="product-form-template--14675953680478__main" accept-charset="UTF-8" enctype="multipart/form-data" novalidate="novalidate" data-type="add-to-cart-form">
<input type="hidden" name="form_type" value="product">
<input type="hidden" name="utf8" value="✓">
<input type="hidden" name="id" value="{{ }}">

<button type="submit" name="add" class="">
Add to cart

<input type="hidden" name="product-id" value="{{ }}">
<input type="hidden" name="section-id" value="template--14675953680478__main">


Click now to add to the shopping cart, but it will directly jump to the "Your cart" page , without a prompt popping up on the current page.     


How can you modify the code to prompt successful addition to the shopping cart on the current page instead of redirecting to another page ??




Replies 2 (2)

Shopify Partner
1163 94 112

Hello @loverlinlin 



please send your Store Url?

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to
From Less To Further !!!

Shopify Partner
1 0 0

Hi @loverlinlin ,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.