Re: change the link of the button in the empty cart to the Dawn theme

Solved

change the link of the button in the empty cart to the Dawn theme

yassined9866
Tourist
4 0 1

hello, I would like to replace the empty cart button link from all products on the home page, thanks for who will help me 🙂

 

Screenshot (66).png

Accepted Solutions (2)

Guleria
Shopify Partner
3186 620 891

This is an accepted solution.

Hello @yassined9866 ,

1. Go to Online Store->Theme->Edit code
2. Edit main-cart-items.liquid under Sections

Now here search for this code 

<a href="{{ routes.all_products_collection_url }}" class="button">

once found then replace it with this one

<a href="/" class="button">

 

Last hit save and check it.

Thanks

 

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal

View solution in original post

Guleria
Shopify Partner
3186 620 891

This is an accepted solution.

1. Go to Online Store->Theme->Edit code
2. Asset->base.css-> paste bellow code in bottom of file

.modal__toggle-open.icon.icon-search {
    display: none;
}
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal

View solution in original post

Replies 9 (9)

Guleria
Shopify Partner
3186 620 891

This is an accepted solution.

Hello @yassined9866 ,

1. Go to Online Store->Theme->Edit code
2. Edit main-cart-items.liquid under Sections

Now here search for this code 

<a href="{{ routes.all_products_collection_url }}" class="button">

once found then replace it with this one

<a href="/" class="button">

 

Last hit save and check it.

Thanks

 

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal
yassined9866
Tourist
4 0 1

thank you so much friend, it worked! can I ask you the last thing if you can solve it? in practice I would like to remove the search icon next to the cart as you see in the picture, can this be done?

Guleria
Shopify Partner
3186 620 891

This is an accepted solution.

1. Go to Online Store->Theme->Edit code
2. Asset->base.css-> paste bellow code in bottom of file

.modal__toggle-open.icon.icon-search {
    display: none;
}
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal
Kamil6
Shopify Partner
6 0 0

Hello there, 

 

i have same issue and your solutions helps me too, but may i ask if i want them to come direct to landing page instead of homepage.

 

Can i get the code?

 

Thank you so much.

Guleria
Shopify Partner
3186 620 891

Use your URL in place of '/' here 

href="/"
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal
Kamil6
Shopify Partner
6 0 0

yes it works.  thank you so much.

yassined9866
Tourist
4 0 1

thanks Guleria, last question, but I can remove the dynamic button from the cart and put it in the checkaut, I tried a code that I saw on youtube but it didn't work, would you know how to do it?

Guleria
Shopify Partner
3186 620 891

No, you can't do customization in checkout page.

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal
yassined9866
Tourist
4 0 1

 

yes I know, sorry I didn't explain, I meant moving the dynamic button in the check aut

Screenshot_20210925-133707_Chrome.jpg

Screenshot_20210925-133530_Chrome.jpg

Screenshot_20210925-133614_Chrome.jpg