Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Cart and Checkout Validation Function API

Cart and Checkout Validation Function API

vy2902
Shopify Partner
26 0 0

Hi, i'm using Cart and Checkout Validation Function API to validate my checkout.

But when i add/remove discount or update attribute, this function will re-run and the error message shown on checkout is effected. It disappeared and appeared again.

How can i fix this?

Replies 4 (4)

SBD_
Shopify Staff
1831 273 423

Hey @vy2902 

 

Can you please provide some more info or screenshots/video?

Scott | Developer Advocate @ Shopify 

vy2902
Shopify Partner
26 0 0
SBD_
Shopify Staff
1831 273 423

Got it. Thanks.

 

So to confirm - is this your app displaying the 'Something went wrong' message? and it temporarily disappears when a discount code is added?

Scott | Developer Advocate @ Shopify 

vy2902
Shopify Partner
26 0 0

@SBD_ 

i'm using Cart And Checkout Validation Function API to show 'Something went wrong' message.
and it temporarily disappears when a discount code is added/removed or updated an attribute