Adding UI elements in to cart.

New Member
1 0 1


I am trying to setup wholesale store and I have problem UI elements not showing up in my cart.  

Following is the codes I have so customers can buy various variants and quantities on given products.  Only problem is when I click add to cart variants and qty are being added correctly but UI element "Logo" isn't being added to cart. 

Please help.  




<div class="desc_blk">
   <form action="/cart" method="post" clearfix="row">

          <p class="cart-attribute__field">
               <select required class="required" id="logo" name="attributes[Logo]">
                  <option value="Logo1"{% if cart.attributes["Logo"] == "Logo1" %} selected{% endif %}>Logo1</option>
                  <option value="Logo2"{% if cart.attributes["Logo"] == "Logo2" %} selected{% endif %}>Logo2</option>
                 <option value="Logo3"{% if cart.attributes["Logo"] == "Logo3" %} selected{% endif %}>Logo3</option>

           <h1>Available Color and Sizes</h1>
                  {% if product.available %}
                    {% for variant in product.variants %}
                      {% if variant.available %}
                        <tr class="{% cycle 'pure-table-odd', '' %}">
                             <img src="{{ variant.image | default: product.featured_image | img_url: 'small' }}" alt="{{ variant.title | escape }}" />

                             {% unless variant.title contains 'Default' %}  {{ variant.title }}{% endunless %}{% unless variant.sku == blank %} / {{ variant.sku }}{% endunless %}
                             {{ variant.price | money }}
                          <td style="text-align:right;">
                            <input name="updates[{{ }}]" onfocus="" class="quantity field" min="0" {% unless variant.inventory_management == blank or variant.inventory_policy == 'continue' %} max="{{ variant.inventory_quantity }}" {% endunless %} type="text" value="0" tabindex="1" />
                      {% endif %}
                    {% endfor %}
                  {% endif %}

          {% if collection.products_count > 0 %}
          jQuery(function($) {
            $('table .quantity:first').focus();
            $('[max]').change(function() {
              var max = parseInt($(this).attr('max'), 10);
              var value = parseInt($(this).val(), 10) || 0;
              if (value > max) { 
                alert('We only have ' + max + ' of this item in stock');
          {% endif %}   
        <div class="payment-buttons payment-buttons--{{ section.settings.add_to_cart_button_size }}">
          <button type="submit" name="add" id="addToCart-{{ }}" class="{{ btn_class }} btn--add-to-cart{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}">
            <span class="icon icon-cart"></span>
            <span id="addToCartText-{{ }}">{{ 'products.product.add_to_cart' | t }}</span>

          {% if section.settings.enable_payment_button %}
            {{ form | payment_button }}
          {% endif %}



Shopify Partner
9449 1190 3319

Hello, @vbrookie 

Welcome to the Shopify community!
and Thanks for your question.

Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on regarding any help
Shopify Expert | Skype :
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

@vbrookie first your form directs to /cart. it must direct to /cart/add 

cart attributes are for checkout purposes, e.g 
"I confirm I am over 18."
then on your order, a  data field for the confirmation of age will appear, it used for details about the order, not the product.

From what you've posted it appears you are looking for line item properties
you can use the following tool to generate the UI elements

or alternatively, change your select element name from attributes[Logo] to properties[Logo].


Please mark as a solution if this helps you, so others can find.



Please like and mark my post as a solution if I've helped you, thanks.