Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am using the Vantage Theme 5.3.2.
On checkout/cart - I want to add an alternative redirect on the "continue shopping" button e.g. I want to update the code so that the "continue shopping" button redirects the customer back to the section from where they last filled their cart (currently ''continue shopping'' sends customers back to the homepage).
Thank you.
Hi,
You can customize the "Continue Shopping" button in your Vantage theme to redirect customers back to the last collection or product page they were on. Here's how you can do it:
This code will use the browser’s history to send customers back to the previous page they visited, which is typically the last collection or product page.
If you want to be more specific, such as redirecting back to a particular collection, you can manually set the URL like this:
<a href="/collections/your-collection-name" class="btn">Continue Shopping</a>
This should help create a smoother shopping experience for your customers!
Hope that helps!
Hi,
Please could you review the following snip of code and confirm whether it is this code we need to update?
<p><a href="/collections">{{ 'cart.general.continue' | t }}</a></p>
I have also included screenshot of what we can see for reference.
Best wishes,
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024