How can I pass line item properties when a user add an item to cart? I just see the “Add to Cart” button component without anything for passing line item properties in the doc. Also, could not find any hook for cart.
I don’t have an answer but I was curious what’s the use case for this line item property? Are you passing customization information or is it to track where the conversion came from?
customization information
Add a hidden input field inside your product form. Use name="properties[YourPropertyName]". For example: <input type="hidden" name="properties[Engraving]" value="User's Text">. This attaches the data to the cart item.
This is for Shop Minis.
We do not support this use-case right now inside shop minis but we are planning changes to how Minis can interact with the cart (internal ticket id: #86928)