Update Cart Button to redirect to alternate view of cart

Peter1
Shopify Partner
122 0 28

Hello all,

 

I have an alternate view for my cart "cart/?view=fr".

 

I have a button on each line to remove a that line completely but when it refreshes, it refreshes to the regular cart page and not the cart/?view=fr page.  Is there a way to have it refresh to the cart/?view=fr page instead?

 

Thanks in advance

 

<a href="/cart/change?line={{ forloop.index }}&quantity=0">Remove</a>
0 Likes
Necteri
Shopify Partner
2 0 0

Did you find a solution?

0 Likes

@Peter1 @Necteri 

You could try storing this value in the local storage and then manually change the query string as per your wish.

Before refreshing, do something like `localStorage.setItem("view-fr", "true");`

Then once it refreshes you can just grab that value

◦ Product page slider & thumbnails with swiping for free themes: Minimal | Debut | Brooklyn | Supply
◦ Replace apps with simple copy/paste code snippets. Examples clicking here.
0 Likes