Ad

Shopify: Checkout Ajax Validations?

- 1 answer

I need to add ajax validations in the checkout page when the users click on the Continue button in each checkout step. Does anyone know if this is possible?

I need to send the Cart object, Address, items, etc. The idea is, the users are unable to continue, if they fail the validation.

Ad

Answer

You can only do this if you are on Shopify Plus. You cannot inject Javascript into checkout for the very good reason that you'd probably break it! It is a finely tuned machine, so the most you can do usually is change some css classes.

Ad
source: stackoverflow.com
Ad