Public API - Attributes on orders
complete
Dean Vizer
When getting orders from the API/Zapier, show the attributes that are part of the products ordered
Log In
B
Bruce Dunnan
While the attributes are now being passed with the line items, because they are nested items there appears to be no simple way in Zapier to grab the particular list of selected options for a given line item.
I've asked Zapier support for help several times and tried writing some Javascript to explore how to grab what I need, but because I have no visibility into the raw (JSON?) data, I'm at an impasse.
Basically, I need a flattened list for each line item from the cart...
(this is what I sent to Zapier to explain things - Yellow is what I need)
Any thoughts??
Dean Vizer
Bruce Dunnan: You can use the built in Zapier function of Line-Itemizer to merge those field together. Zapier have an example here - https://zapier.com/help/create/format/create-line-items-in-zaps#line-itemizer
From an Order in Siteglide if you create a line item group and property, then in the property value add “Product Data Attributes Attribute Option Name” then it will give you the values highlighted in yellow in your image
B
Bruce Dunnan
Dean Vizer
I'm using Line Itemizer and that's where the problem arises. You can get Line Itemizer to loop through line items (1st level) without a hitch. However, if you add the "Product Data Attributes Attribute Option Name", it then munges that line item list with a list of all the attributes selected instead of assigning the "array sets" to those line items that have attributes.
Dean Vizer
complete
The existing endpoints have been updated to include the attributes on orders. Fields for information such as discount codes and tax have also been added to the order.
Dean Vizer
in progress
Dean Vizer
planned