Debut Theme: Add to Cart button on homepage/collection pages

Solved
cdanielc
Tourist
16 0 1

Hi,

This question has been raised a few times, but I can't get it up and working (outdated posts?) and I have an additional question regarding the design. 

As I am using Debut theme there is by default no "add to cart" button below the products on the homepage/collection pages. I would like to add an "add to cart" button in the same style as if you would create a Buy button for an external site  (Sales Channels > Buy button > Create a buy button). Please find an image below.

Can anyone help me out? Thanks in advance!

Buy buttonBuy button




KetanKumar
Shopify Partner
20496 2118 7727

This is an accepted solution.

@cdanielc 

can you please try this 

Just follow the steps for Debut theme for Add to cart button on collection pages.

  • From Shopify Admin select Online Store and click on Themes
  • Choose your main theme
  • Click the . . . on the top left-right (see below) and hit Edit code
  • Open Snippets -> product-card-grid.liquid File and paste below code at the end of the page.
    <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 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
Robertjl
New Member
1 0 1

Hello. I also have problem with no “add cart” button, I didn’t notice it at first, but when after editing my shipping and delivery that’s the time I notice that there is no add cart. I’m using minimal theme. Thank you 

KetanKumar
Shopify Partner
20496 2118 7727

@Robertjl 

Sorry for facing this issue, it's my pleasure to help us.

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide 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
0 Likes
SkynSin
Excursionist
18 0 7

Hi @KetanKumar , I noticed you managed to help some other Shopify store owners with this issue. I'm facing the same issue now trying to align my Add to cart buttons on my collection page.

Screenshot 2021-01-30 at 19.04.53.png

1. I'd like to make it so the Add to Cart button is in line with the Quantity.

2. I'd like to fix the height o the Product title so that the Quantity and Add to cart line will be aligned.

Would appreciate your help with this. Thank you!

 

Kristyn

KetanKumar
Shopify Partner
20496 2118 7727

@SkynSin 

Sorry for facing this issue, it's my pleasure to help us.

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide 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
SkynSin
Excursionist
18 0 7
Hi, thanks for replying!

This is my URL: SkynSin.com
0 Likes
SkynSin
Excursionist
18 0 7

Hi @KetanKumar  , thanks for replying!

This is my URL: SkynSin.com

0 Likes
KetanKumar
Shopify Partner
20496 2118 7727

@SkynSin 

is this fine look?

KetanKumar_0-1612020297800.png

 

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
SkynSin
Excursionist
18 0 7

Hi @KetanKumar 

Yes that looks better! But can the Product Title be in line with the picture and the Quantity line?

Screenshot 2021-01-31 at 01.35.28.png

Thanks!