FROM CACHE - en_header

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 109 (109)
KetanKumar
Shopify Partner
35810 3580 11588

@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
Fi_GlowDry
Excursionist
14 0 9

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
35810 3580 11588

@Fi_GlowDry 

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
Fi_GlowDry
Excursionist
14 0 9

Hey Ketan

Thank you i have never posted her before

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

 

Cheers

Fi 

KetanKumar
Shopify Partner
35810 3580 11588

@Fi_GlowDry 

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
Fi_GlowDry
Excursionist
14 0 9

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
35810 3580 11588

@Fi_GlowDry 

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
Fi_GlowDry
Excursionist
14 0 9
KetanKumar
Shopify Partner
35810 3580 11588

@Fi_GlowDry 

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
Fi_GlowDry
Excursionist
14 0 9

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

KetanKumar
Shopify Partner
35810 3580 11588

@Fi_GlowDry 

Yes, please add this css code

.product-card__title {
    min-height: 50px;
    display: 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
Fi_GlowDry
Excursionist
14 0 9

where does it go?

KetanKumar
Shopify Partner
35810 3580 11588

@Fi_GlowDry 

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

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
ginnyst
Tourist
7 0 3

Hello there, I have done this, but on mobile, i have very weird spacing on my buttons. (see photo) Can you advise how to correct that?

 

Thanks

KetanKumar
Shopify Partner
35810 3580 11588

@ginnyst 

sorry for this issue 'bt  i can't see any photos also please share store url

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
ginnyst
Tourist
7 0 3
It is on mobile - ginnystlawrenceart.com thank you!
KetanKumar
Shopify Partner
35810 3580 11588

@ginnyst 

sorry i can't see your attachment bt can you please try this code

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

@media only screen and (max-width: 749px) {
.btn, .shopify-payment-button .shopify-payment-button__button--unbranded {font-size: 12px;}
}

 

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
ginnyst
Tourist
7 0 3
Hi that didn't work unfortunately. If you go to my homescreen on mobile -
ginnystlawrenceart.com you will see all the "add to cart" buttons I
manually added.

When you look at the "view all" it is smudged up against all the other add
to cart buttons, but only on mobile
ginnyst
Tourist
7 0 3

Here is what I am referring to. 

KetanKumar
Shopify Partner
35810 3580 11588

@ginnyst 

do you have like this?

KetanKumar_0-1623392335020.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