I'm looking for a line of code for custom packing slip template that will total the order qty for the same item (either by name or SKU) when it appears as separate line items on the order in Shipstation. Basically, due to some of our other applications, shopify order edits, and discount codes, there are sometimes orders from our Shopify channel that will display in Shipstation as :
Product A x1
Product B x1
Product C x1
Product A x1
All I want is:
Product A x2
Product B x1
Product C x1
Thanks