How To Initiate A Redirect From A Shopify Checkout Validation App #229
Replies: 2 comments 2 replies
-
Hi there 👋🏻
We currently don't support this. Would you mind providing more information about your use case? Thanks. |
Beta Was this translation helpful? Give feedback.
-
@aledalgrande Not the author of the original post, but I have the same issue. What I already have:
|
Beta Was this translation helpful? Give feedback.
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