Jump to content

Recommended Posts

I would like to either a). direct the customer to the cart after adding a product and provide them with "Continue Shopping" option (continue shopping currently only shows if the cart is empty), or b) provide a pop up or additional buttons that allow the customer to choose to go to the cart or continue shopping. I haven't seen anything out there yet besides plugins.  TIA!

Link to comment
On 5/30/2024 at 11:28 AM, Webb said:

can you please send it, I really appreciate it! 

Use this code to Website > Website Tools > Code Injection > Footer.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
	$('<a href="/shop" class="go-to-shop">Go to Shop</a>').appendTo('div.sqs-add-to-cart-button-wrapper');
});
</script>
<style>
a.go-to-shop {
    display: block;
    text-align: center;
    border: 2px solid #000;
    border-radius: 50px;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}
</style>

image.thumb.png.fc517c7de5877b6179e9944a436b7251.png

Result

image.png.f4d908b63f4a279fa5239676afe52390.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.