instructions quota exceeded error on line_item.split() example

Roger13
Shopify Partner
1 0 0

on this page https://help.shopify.com/manual/apps/apps-by-shopify/script-editor/shopify-scripts#split-example

the split example has the line 

cart.line_items << new_line_item

but that throws an error in Script Editor saying "instructions quota exceeded". Without it, my split line item doesn't appear in the cart...

0 Likes
Mandelbrotian
Shopify Partner
132 1 19

Hi Roger,

Could you provide the complete code you are using? Judging by the error message you are trying to run too many things in a single script.

Cheers,

Elliott

Feeling a bit lost? Contact elliot@mandelbrotian.com for help with theme setup, alterations, custom functionality, and app development.
0 Likes