Tag Specific Redirect
This article explains how to configure your Shopify cart and redirect checkout to Checkout Champ based on specific Product Tags
Things to keep in mind
If you do not care which products redirect to Checkout Champ please review this article instead
The Shopify to Checkout Champ redirect will only occur if all products in the cart have the special tag associated with them
If any of the products in the cart do not have the tag the entire cart will checkout through Shopify’s native checkout
First you need to add a tag to your products signifying that these ones should redirect to Checkout Champ.
Log into your Shopify admin portal
Navigate into a specific product
Go to the Tag section, and create a tag for the product.
4. Now apply the same tag to the rest of the products that you’d like to redirect over to Checkout Champ
Now that the tags have been added to your products, we now have to go and add some code to handle the redirect.
To redirect the Shopify cart to the Checkout Champ checkout page, it is required to manually set the routing on your Shopify cart page.
If you are unfamiliar with accessing your Shopify Liquid Code please follow the instructional video here
Go to the snippets/ folder and add a "{name}-cart.js.liquid" snippet (replace {name} with some unique name for the snippet)
Copy the code snippet below and paste into the {name}-cart.js.liquid snippet.
In the above snippet you’ll have to make the following changes
Line 8: replace “ENTER_YOUR_CHECKOUT_URL_HERE” with the checkout url of the funnel that will be redirected to.
Line 46: replace “create-a-tag” with the tag you created and applied to your products
Line 73: replace “create-a-tag” with the tag you created and applied to your products
Line 83: replace “create-a-tag” with the tag you created and applied to your products
Save the snippet.
Go to the cart.liquid file and paste this text at the top of the file. The value inside the apostrophes should be the snippet name, without “.liquid”.
Save the cart.liquid file.
targetInAny - Redirects whole cart if ANY product has the tag.
targetInAll - Redirects cart if ALL products have the tag.
targetInNone- - redirects cart if NO products have the tag
Last updated