Skip to main content
added 141 characters in body
Source Link
Luke Pearce
  • 3.9k
  • 1
  • 12
  • 25

You will need to make use of lineitem "options" param. You can attach as many options as you like using something like:

<input type="number" name="options[numberDistance]" step="any" placeholder="Add your minimum distance in mm..." id="distanceNum">

And then these will be avaliable on the lineItem once saved using

{{ item.options['numberDistance'] }}

More info can be found on the Craft Commerce docs

You will need to make use of lineitem "options" param. You can attach as many options as you like using something like:

<input type="number" name="options[numberDistance]" step="any" placeholder="Add your minimum distance in mm..." id="distanceNum">

And then these will be avaliable on the lineItem once saved using

{{ item.options['numberDistance'] }}

You will need to make use of lineitem "options" param. You can attach as many options as you like using something like:

<input type="number" name="options[numberDistance]" step="any" placeholder="Add your minimum distance in mm..." id="distanceNum">

And then these will be avaliable on the lineItem once saved using

{{ item.options['numberDistance'] }}

More info can be found on the Craft Commerce docs

Source Link
Luke Pearce
  • 3.9k
  • 1
  • 12
  • 25

You will need to make use of lineitem "options" param. You can attach as many options as you like using something like:

<input type="number" name="options[numberDistance]" step="any" placeholder="Add your minimum distance in mm..." id="distanceNum">

And then these will be avaliable on the lineItem once saved using

{{ item.options['numberDistance'] }}