Personalized checkout and custom promotions with Shopify Scripts
Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!
I have just released some new cart script code to implement multibuy discounts - I tested it thoroughly and its working well.
Some customers are causing "InstructionQuotaExceeded" errors by entering huge carts (many lines, order 1 million items). The code loops through the cart lines finding deals so carts of this size won't process due to CPU limits.
Operationally, its not causing a problem, because the carts never goto checkout & the cart just ends up unmodified.
However, I am getting email notifications each time this happens & I like my script to detect error conditions rather than run with errors...
I am planning to deal with it by detecting a max cart size/items which if exceed the cart script exits.
I am interested whether anyone else has experienced similar problems & what strategies have you employed to deal with it?
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022