If cart is empty, the cart page will redirect to shop page in Shopify

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.

You want to redirect the cart page to collection page or any pages when the cart page is empty otherwise shows the cart page. It’s simple.

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. In the Templates directory, click cart.liquid.
  4. Insert below code to the top of this file.

You can replace “/collections/all” with any page URL.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

You may also like...

1 Response

  1. Rachel says:

    Thank you for this!! For some reason our Shopify’s normal empty cart language doesn’t show, this is an improvement.

    However, it takes a refresh to kick in after a customer empties their cart. Is there any way around this?

Leave a Reply

Your email address will not be published. Required fields are marked *