Debut theme - how to add a 'buy now" in shop/collection section ?

Solved
Highlighted
Tourist
15 0 1

Hello,

 

I'm just start to work with Shopify.. I have a question: How can I add a buy button in the shop section (collections/all) of shopify in Debut theme?

 

Thank you.

0 Likes
Highlighted
Shopify Expert
1381 111 203

This is an accepted solution.

hi,

hope you doing good

 

use this code solve the problem

 

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

 

if you face any issue please drop a mail  infoperennialsolution@gmail.com

 
Thanks & Regards
Perennial Solution

0 Likes
Highlighted
Tourist
15 0 1

Thank you for reply. Where should I add this code ? In which section ?

0 Likes
Highlighted
Shopify Expert
1381 111 203

Put the code this file 

product-card-grid.liquid
0 Likes
Highlighted
Tourist
15 0 1

Thank you. It's work great. One more question, Can I forward user directly to checkout page after they click the btn ? and not to cart page ?

0 Likes
Highlighted
Shopify Expert
1381 111 203

hi,web888

thanks for kind of word

 

my solution help you please like and accept my solution

0 Likes
Shopify Expert
1381 111 203

Yes, it can be redirected to checkout page as well and not cart page.

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution

0 Likes
Highlighted

Hi @web888 

 

If you're just starting out and don't want to pay for a theme here is the #1 shopify free theme. Its 3rd party theme but has stacks of features that the shopify free themes don't offer. 

 

I did a review of this theme if you wanted to check it out. 

https://www.inspiresmallbusiness.com/blogs/blogs/1-shopify-free-theme

 

Hope that helps and good luck with everything

 

Cheers 

Clayton Bates 

 

Grab Most Detailed FREE Review --->LEARN MORE


Client VIDEO TESTIMONIALS --->VIEW

0 Likes