I’m currently developing with the Shopify Cart Transform API, aiming to incorporate line items based on a specified threshold.
For instance:
If the cart total is equal to or exceeds $50, automatically include a line item; otherwise, remove the item.
If the cart total is equal to or exceeds $100, automatically add another line item to the cart; otherwise, remove the item.
The GWP items are specified in metaobjects. I’m exploring the possibility of obtaining the IDs or objects of selected products from the metaobject entry.
@Nick_Wesselman Will we be able to define a metafield field which is a reference to a metaobject? Currently, we can only output the type and value for this. But it would be great if we could access the reference on a metafield.
@Nick_Wesselman Is support for Metaobjects as input to Function APIs something that is on the list to be supported in the future at some point? Or is it something that is likely to never happen?
Yes, this! And then also the references inside those metaobjects if for example it references a product or other object. The input is so limited and having to convert/push/update/sync everything into a json metafield is very annoying