Hi,
I am going from an older to a newer shopify them.
To add my line items to cart I had this block of code from my old theme:
{%- unless line_item.properties == empty -%}
-
{%- for property in line_item.properties -%}
{%- if property.first.first == '_' -%}{%- continue -%}{%- endif -%}
- {{ property.first }}: {{ property.last }} {%- endif -%} {%- endfor -%}
{%-if property.first ==“Image”-%}
{%- else -%}
The new theme has this block and I am not sure how to integrate my prior code since I also retained my line-property-items on the snippet files.:
{%- assign property_size = product.properties | size -%}
{% if property_size > 0 %}
{% for p in product.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/' %}
{{ p.last | split: '/' | last }}ffdgfdgfdg
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}
{% endif %}