Re: Cart Drawer - Continue Shopping Button

Solved

How can I modify the 'Continue Shopping' button to close the Cart Drawer?

DK7
Excursionist
43 0 9

Hi everyone,
Hope you're all doing well. I'm trying to make the "Continue Shopping" simply close the Cart Drawer, not going to the "All products" page. If only you could help me with this.
Here is the code for the button

<a href="javascript&colon;location.reload();" class="underlined-link">Continue shopping</a>

I also attach the picture so you could easily consider the situation

DK7_0-1655021389340.png

 


Thank you very much! I'm looking forward to hearing from you soon.

Accepted Solution (1)
LitCommerce
Astronaut
2860 684 761

This is an accepted solution.

Hi @DK7,

Please change code:

<a href="javascript&colon;location.reload();" class="underlined-link">Continue shopping</a>

=>

<a class="underlined-link" onclick="toggleCart();" style="cursor: pointer;">Continue shopping</a>

Hope it helps!

 

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

Replies 9 (9)

LitCommerce
Astronaut
2860 684 761

Hi @DK7,

Please change:

javascript&colon;location.reload();

=>

javascript&colon;void(0)

Hope it helps!

 

 

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
DK7
Excursionist
43 0 9

Hi @LitCommerce ,
Thank you for your response. I tried the code but I did nothing when I clicked on the button. I'm looking for another code.
Hope you're doing well. Thank you very much!

LitCommerce
Astronaut
2860 684 761

This is an accepted solution.

Hi @DK7,

Please change code:

<a href="javascript&colon;location.reload();" class="underlined-link">Continue shopping</a>

=>

<a class="underlined-link" onclick="toggleCart();" style="cursor: pointer;">Continue shopping</a>

Hope it helps!

 

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
DK7
Excursionist
43 0 9

Hi @LitCommerce ,
Your code did its work really well. Thank you so much! Wish you all the best!

bamboom
Shopify Partner
12 2 13

Hi, this is exactly what I'm trying to achieve as well, can I ask where you added the above code? I can't seem to find a liquid file for the cart drawer, just for the main full screen cart.  Thanks!

bamboom
Shopify Partner
12 2 13

Never mind, found the liquid file! I've tried both solutions mentioned above, but neither of these close the drawer when you click them. Any ideas what the issue might be?

Thanks.

<a onclick="toggleCart();" class="btn">Continue shopping</a>

<a href="javascript&colon;void(0)" class="underlined-link">Continue shopping</a>


bamboom
Shopify Partner
12 2 13

I've tried both solutions mentioned above, but neither of these close the drawer when you click them. Any ideas what the issue might be?

Thanks.

<a onclick="toggleCart();" class="btn">Continue shopping</a>

<a href="javascript&colon;void(0)" class="underlined-link">Continue shopping</a>


LitCommerce
Astronaut
2860 684 761

Hi @bamboom,

You can create a question on the community and send me the link. I will check it.
Because this will help build a better community.
Thank you.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
hugo_ovb
Tourist
3 0 1

Hello i have the same problem, but my code for the button is looking different and i already pasted your code in but nothing changed (i am a beginner). What can i do?Unbenannt.JPG