Hi !
I’m trying to add an element to a collection.
I first iterate in all the elements of a shopify basket in order to send it to my ERP.
I put it all into a orderdetails collection, but then I need to add to value at the end.
How should I approach it ? I have tried many option but nothing works.
In ruby coding it would be something like this :
all_item_data << {
‘LineType’=> ‘Miscellaneous’,
‘MiscellaneousChargesCode’ => ‘SHIP’,
}
thanks !