How To Initiate A Redirect From A Shopify Checkout Validation App #228
Closed
Soap-Matt
started this conversation in
Feedback: Order Routing API
Replies: 1 comment
-
Dup of #229 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have followed the below tutorial and created a Shopify checkout validation app.
https://shopify.dev/docs/apps/checkout/validation/cart-checkout
Everything is working as expected, however, if the validation fails, instead of showing a message, I would like to redirect the customer to the cart page.
How would I go about acheiving this,
Please see simplified version of my code below:
extensions/cart-checkout-validation/src/index.js
The error is showing as expected, but I would instead like to initiate a redirect.
I have been at this for hours with no success. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions