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

Solved
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
2250 466 687

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

 

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1

Try GEMPAGES a great app with drag and drop features to design landing/product/individual pages.

View solution in original post

Guleria
Shopify Partner
2250 466 687

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;
}
Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1

Try GEMPAGES a great app with drag and drop features to design landing/product/individual pages.

View solution in original post

Replies 9 (9)
Guleria
Shopify Partner
2250 466 687

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

 

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1

Try GEMPAGES a great app with drag and drop features to design landing/product/individual pages.
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
2250 466 687

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;
}
Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1

Try GEMPAGES a great app with drag and drop features to design landing/product/individual pages.
Kamil6
New Member
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
2250 466 687

Use your URL in place of '/' here 

href="/"
Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1

Try GEMPAGES a great app with drag and drop features to design landing/product/individual pages.
Kamil6
New Member
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
2250 466 687

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

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1

Try GEMPAGES a great app with drag and drop features to design landing/product/individual pages.
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