I have a product (gift box) where a user can select 2 items from a list of 3 (this may increase). I have tried order_fields`, which works but displays on every item in the cart if more than one item and I have tried itemData, which again works and would be better as it is just one field. What happens though is that it will only pull in the last item selected, even if I create 3 different itemData fields, it will only pull in the last one if selected and ignore the other two. Ideally I would like one itemData field, beerChoice, which then pulls in all the selections.
This is the code for pulling in the choices
{% if item.properties.beerChoice %}
{{ item.properties.beerChoice }}
{% endif %}
Hi Mark, thanks for getting back to me. Option 1 didn’t work I’m afraid, I couldn’t get them to pull through at all. In the end, I used beerChoice in the itemdata module and used a select box for them to select their choices. May get complicated if more options are added in the future but for now it works well and pulls through to the basket and the order emails.