In my shop, I have two different kinds of products.type items and my products have variants.
For one of products type, I would like to show the note field in the cart.
My product types are:
- products
- options
For product type options, I don't want to show the note field.
How can I set this up?
Tried this without success.
{% for item in cart.lineItems %}
<form method="POST">
<input type="hidden" name="action" value="commerce/cart/updateLineItem">
<input type="hidden" name="lineItemId" value="{{ item.id }}">
{% if product.type('products') %}
<input class="form-control" type="text" placeholder="Productsort" name="note" value="{{ item.note }}" required>
{% endif %}
<input class="form-control" type="submit" class="button" value="Bijwerken"/>
</form>
{% endfor %}