adding a back button on checkout page

jcdsr3
Shopify Partner
28 0 12

Is possible to add a back button on the checkout page, on the header? The only way to go back from the checkout page is by clicking the logo or using the back button on the browser.

My client need a back button on the checkout page. Any ideas?

Regards 

0 Likes
Suture
Shopify Expert
648 0 105

Try something like this

<a href="javascript:history.back()">Go Back</a>

or this

<input type="button" value="Go Back From Whence You Came!" onclick="history.back(-1)" />

 

0 Likes
jcdsr3
Shopify Partner
28 0 12

Thanks R.

However I can't see the checkout.liquid on my templates folder, snippets folder or any template page related to checkout page. How do I add this code line and where? Do I have to create a new checkout.liquid page? 

 

Sorry for all this confusion. 

0 Likes
Suture
Shopify Expert
648 0 105

Okay sorry, I have to improve my "reading comprehension". I was thinking of the cart page for some reason.

From what I understand you can only style the checkout page. It is possible to add a script on the thank you page (via Admin>Settings>Checkout), but not checkout page itself.

0 Likes
jcdsr3
Shopify Partner
28 0 12

No pb. The script is only for the thanks page. I a shame how limited is this area

0 Likes
HunkyBill
Shopify Expert
4372 36 467

Shopify Plus gives you access to a checkout.liquid. For those that need to control their checkout, there you go. 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Jason
Shopify Expert
10039 119 1876

You can fake a button by adding an ::after psuedo element on the logo.
https://gist.github.com/freakdesign/d6a53c0bc2b1ccf0be7e#file-add-back-button-shopify-css

 

(or  just edit the logo itself)

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
jcdsr3
Shopify Partner
28 0 12

Well done J.

Thx

0 Likes
Caroline_Schnap
Shopify Staff
Shopify Staff
5704 1 341

Brilliant, Jason!

0 Likes
rkosta
New Member
2 0 0

Thanks a lot bro. Very appreciable.

0 Likes