Price Match Contact Form, missing content on outputted email

Callum_Dev
New Member
1 0 0

I am attempting to output the list of variants of a product on a "Price match" contact form, but when I submit test emails only the last variant selected is ever outputted on the email (see images attached & liquid code used).

Link to example product:https://moto-planet.com/products/shad-sh39-top-box-39-litres-d0b39100

Any help would be greatly appreciated.

Screenshot 2021-05-12 at 16.01.58.pngScreenshot 2021-05-12 at 16.03.16.png

{%- unless product.has_only_default_variant -%}
   {% for product_option in product.options_with_values %}           
      
   <div class="col-md-12">
   <div class="form-group">
   <div class="form-default">
 <div class="pt-title-options">{{ product_option.name}}: (Optional)</div>

    <select class="form-control" id="ContactFormVariant-" name="contact[Variants]">
         
    {% for value in product_option.values %}
     <option {% if product_option.selected_value == value %}selected{% endif %}>
      {{ value }}
     </option>
      
     {% endfor %}</select></div></div></div>          
     {% endfor %}
     {% endunless %}

 

0 Likes