Personalized checkout and custom promotions with Shopify Scripts
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?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024