I’m developing a Line Item Script to apply ticketing fees (for livestream products) to the cart. Here’s how I’m attempting to do this:
-
Check to see if cart has “Livestream” type product(s)
-
Check cart for existing “Fee” type product
-
if 1=true and 2=true, drop fee product, create new variant and add new line item
-
if 1=true and 2=false, create new variant and add new line item
I’ve not found where to add a line item with dynamic product variant yet using Shopify+ Script Editor. Any links or help would be awesome. As well, it seems that the product information isn’t ready available from the line_item like it is within liquid object structures, so info on that may be helpful as well.
I am continuing to dig and learn about the functionality here, but I need to move fast.
Further, if someone wants to jump on with me, I can gladly pay you to help me get over this hurdle.
Thanks!