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




Replies 84 (84)
KetanKumar
Shopify Partner
26603 2659 9364

@Mayaps 

thanks 

i have update my color collection page proper code so can you please update

also if you need same as product page it can be done some customization code 

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
FionaLucyD
Tourist
6 0 5

Hey i was wondering if you could help me too. 

I have added in thr add to cart button on my best sellers collection on the homepage but its not aligned

Its also not going to cart just an invalid page can you help me too?

 

KetanKumar
Shopify Partner
26603 2659 9364

@FionaLucyD 

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
FionaLucyD
Tourist
6 0 5

Hey Ketan

Thank you i have never posted her before

Im at https://glowdry.myshopify.com/

 

Cheers

Fi 

KetanKumar
Shopify Partner
26603 2659 9364

@FionaLucyD 

thanks for store URL, please add this code

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.

.product-card__title {min-height: 50px;isplay: inline-block;}

 

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
FionaLucyD
Tourist
6 0 5

oh wow 

 

thanks so much

 

Any idea how to fix the add to cart so it goes to the cart page and not an error?

also can we straighten the add to cart button?

 

KetanKumar
Shopify Partner
26603 2659 9364

@FionaLucyD 

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
FionaLucyD
Tourist
6 0 5
KetanKumar
Shopify Partner
26603 2659 9364

@FionaLucyD 

sorry but you have add wrong code please add this code

<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
FionaLucyD
Tourist
6 0 5

Thank you so much 

 

I have done that now

 

Is it possible to move the view all button down?

 

and line up hte add to cart buttons - it looks quite messy on mobileScreen Shot 2021-05-31 at 6.31.37 am.png