However, I found some inconsistency in the readme text and code:
the readme article says the extra option can be just as simple as <input type="checkbox" name="[[+scriptProperties.name]]" value="[[+id]]">, so in my case the name is Sides which is also allowed in the Item Data module for Commerce in the field: Allowed fields
while the cart items tpl code is using the adjustments and the filter
{% set adjustments = item.adjustments|filter(v => v.type == 'extra') %}
{% if adjustments|length > 0 %}
{% for adjustment in adjustments %}
<br>
+ {{ adjustment.name }}
({{ adjustment.total_change_formatted }})
{% endfor %}
{% endif %}
So, the question: how should the additional âsidesâ be named in the html and what needs to be set per that side product settings or in the item data module, please?
Hi @fuddus
You can download the ItemOptions module from the modmore package provider. Once itâs installed, youâll be able to find it in the Commerce -> Configuration -> Modules grid.