I'm trying to pass variants to the cart page. They variant field I want to pass is 'varHeight'. I'm using:
<form method="POST">
<input type="hidden" name="action" value="commerce/cart/update-cart">
{{ redirectInput('shop/cart') }}
{{ csrfInput() }}
{% for item in cart.lineItems %}
...
{{ item.description }}
{% for lineItem in cart.lineItems %}
{{ lineItem.purchasable.varHeight }}
{% endfor %}
...
{% endfor %}
This works but puts the 'varHeight' value on every product in the cart instead of just the product it relates to. I'm sure it's simple but need some input on how to do this.