I have a problem with my shopify scripts as it relies on product tags. I suspect that there is a problem with shopify scripts whenever line item properties are introduced. As noted in partner slack community, it is not possible to add line item properties in the script editor so I don't know how to test or produce useful logging to figure out what is wrong. How does Shopify recommend I troubleshoot my script.
Visit the ☝️ link above
Add one necklace to the cart, typing in "Test" as your personalization
Increase the quantity in the cart to 3
observe that the "Gift & Save" discount via shopify script applies
empty the cart
Add a necklace in one-at-a-time to the cart, each with a different personalization
observe that the "Gift & Save" discount is not applied
I feel uncomfortable pasting the source code of my script here publicly, but I am open troubleshooting this bug privately with Shopify.