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

Solved
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

Success.

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

Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
Tourist
15 0 1

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

0 Likes

Put the code this file 

product-card-grid.liquid
Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
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

hi,web888

thanks for kind of word

 

my solution help you please like and accept my solution

Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes

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

Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes

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 

 

NO Sales ??? Learn More -----> here

0 Likes