Line Item Properties not being added

Highlighted
New Member
5 0 0

I'd like for certain product details to come through on each order, in a very specific way. I've had some success with this but can't seem to get it working now. I'm trying to assign line item properties based on the metafield for one of my products. I know the metafield is being set correctly because i also use it to display info on my page. I'm testing this by just adding the item to my cart, but none of the values are showing in the properties as viewed in my cart. Any idea why the line item inputs aren't being set?

 

      <div class="grid__item post-large--one-half">
        <h1 class="product-single__title" itemprop="name">{{ product.title }}</h1>
          <div class="product-description rte" itemprop="description">
            <li>{{ product.description }}</li>
            <br>
            <li><b>Brand: </b>{{meta.brand}}</li>
            <li><b>Model: </b>{{meta.model}}</li>
            <li><b>Color: </b>{{meta.color}}</li>
            <br>
            <li><h3>Sizing</h3></li>
            <li><b>Lens Width (A): </b>{{meta.a_val}}</li>
            {% if meta.b_val %}
            <li><b>Lens Depth (B): </b>{{meta.b_val}}</li>
            {% endif %}
            <li><b>Bridge (DBL): </b>{{meta.dbl}}</li>
            {% if meta.temple %}
            <li><b>Arm Length (Temple): </b>{{meta.temple}}</li>     
            {% endif %}
            <br>
          </div>
        <p class="line-item-property__field">
          <input type="hidden" name="properties[Brand]" id="brand" value="{{meta.brand}}">
          <input type="hidden" name="properties[Model]" id="model" value="{{meta.model}}">
          <input type="hidden" name="properties[color]" id="color" value="{{meta.color}}">
          <input type="hidden" name="properties[a_val]" id="a_val" value="{{meta.a_val}}">
          <input type="hidden" name="properties[b_val]" id="b_val" value="{{meta.b_val}}">
          <input type="hidden" name="properties[dbl]" id="dbl" value="{{meta.dbl}}">
          <input type="hidden" name="properties[temple]" id="temple" value="{{meta.temple}}">
          <input type="hidden" name="properties[ed_val]" id="ed_val" value="{{meta.ed_val}}">
        </p>

 

 

0 Likes