Jump to content

adding a continue shopping link to the order confirmation page

Recommended Posts

Site URL: https://longtimefrienddiscount.com/merch

hi ive hidden the header from my entire site for a clean appearance, so on the order confirmation page there isn't any clear way to get back to the products if you want to continue shopping.  can anyone provide the type of injection code i could use to insert a hyper link or something that you could click to return to a designated page - that or the code for the continue shopping link that appears when a cart is empty. 

if possible i would like to also add the same sort of link to the cart page

Link to comment
  • Replies 7
  • Views 542
  • Created
  • Last Reply

Add to Home > Settings > Advanced > Code Injection > Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
    $('div#confirmed-page').append('<p class="t-order">Back to <a href="/shop">Shop<a></p>');
  });
</script>
<style>
.t-order a {
    text-decoration: underline;
    color: green;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 months later...
On 10/15/2020 at 12:30 PM, MamaMoon said:

I have just tried this code on my website and sadly it didn't work.  Im on a 7.1 template.  I can add things to cart but there is no continue shopping button 

Any ideas?

 

Can you share link to cart page? We can check easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.