personalization for drop down size showing up on product but not on cart, using icon theme

New Member
1 0 0

hello - new here, hoping there is an easy answer, i've been playing around and using info from the following tutorial regarding personalization/customization - https://help.shopify.com/en/themes/customization/products/features/get-customization-information-for... - 

being we offer so much customization - with the options (up to 3) and then variants (for a combined total of 100) - unfortunately we need more

The easiest way was for us to make a drop down sizing chart to show up on products - this worked.  We made a personalization drop down from article followed above.  But as I have played around with cart.liquid file in Templates and have entered code from tutorial above - I still can not get the drop down personalized picked size to show up in our cart.  I'm sure I can just have "we are underground" who made the Icon theme help us with this but am having fun trying to get this figured out (I should say learn) how to do myself (with help from any and all). 

 

Code to change from tutorial is already a bit similar to what is in cart.liquid file from Icon theme.  

 

The following code is from the tutorial

{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
  {% for p in item.properties %}
    {% assign first_character_in_key = p.first | truncate: 1, '' %}
    {% unless p.last == blank or first_character_in_key == '_' %}
      {{ p.first }}:
      {% if p.last contains '/uploads/' %}
        <a class="lightbox" href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
      {% else %}
        {{ p.last }}
      {% endif %}
      

    {% endunless %}
  {% endfor %}
{% endif %}




<!--below this is code from ICON theme from weareunderground-->

              <h4>{{ item.product.title }}</h4>                        
              {%- unless item.variant.title contains 'Default' -%}              
              <p>
                  {% for option in item.product.options %}
                    {{ option }}: {{ item.variant.options[forloop.index0] }}<br/>
                  {% endfor %}
                </p>
              {%- endunless -%}

              {% assign property_size = item.properties | size %}
              {% if property_size > 0 %}
                {% for p in item.properties %}
                  {% unless p.last == blank %}
                  {{ p.first }}:
              
              {% comment %}
                  Check if there was an uploaded file associated
                  {% endcomment %}
                  {% if p.last contains '/uploads/' %}
                  <a href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
                  {% else %}
                  {{ p.last }}
                  {% endif %}

                  <br>
                  {% endunless %}
                {% endfor %}
              {% endif %}
            </div>

so there is similarities from the tutorial to what is already in the icon cart.liquid file

thanks for any and all help/direction - cheers

 

 

0 Likes

Hello 

Please share your site url so that i can check and let you know

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes