Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihorduchenko/d73ccfcb1d840a43db985deb17d23507 to your computer and use it in GitHub Desktop.
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
{%- 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