Add to Cart popup menu redirect Continue Shopping 1 step back

Solved

Add to Cart popup menu redirect Continue Shopping 1 step back

Fidiak
Tourist
11 0 6

Hello,

can anyone tell me how to change the Continue shopping button after placing the goods in the cart  in the POP-UP menu? I would like the page to go back one step. I have the basic DAWN 2.0 theme

Thank you for your advice.

 

 

picture .png

Accepted Solution (1)

suracethapa
Shopify Partner
10 2 4

This is an accepted solution.

Hi @Fidiak
You can find the code under 
Online Store -> Themes -> Actions -> Edit Code -> Snippets -> cart-notification.liquid

Do you mean going back to the previous page? If yes please use this code.
Please change this code

<button type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button>

to 

<button onclick="history.back()" type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button>

 

Thank you.

View solution in original post

Replies 3 (3)

suracethapa
Shopify Partner
10 2 4

This is an accepted solution.

Hi @Fidiak
You can find the code under 
Online Store -> Themes -> Actions -> Edit Code -> Snippets -> cart-notification.liquid

Do you mean going back to the previous page? If yes please use this code.
Please change this code

<button type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button>

to 

<button onclick="history.back()" type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button>

 

Thank you.

Fidiak
Tourist
11 0 6

Dear Suracethapa, 

Thank you very much for your help.

You are amazing.

Regards, Martin

suracethapa
Shopify Partner
10 2 4

You are welcome.