Created
April 16, 2024 20:55
-
-
Save ihorduchenko/d73ccfcb1d840a43db985deb17d23507 to your computer and use it in GitHub Desktop.
How to add line item properties and cart attributes in Shopify product form markup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- form 'product', product, id: form_id, class: 'product-single-form' -%} | |
<!-- Line item property --> | |
<input type="hidden" name="properties[Field]" value="Field value"> | |
<!-- Cart attribute --> | |
<input type="hidden" name="attributes[Vendor]" value="Livom"> | |
{%- endform -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment