Step 4: Update your cart
Remove hidden line item properties, or calculate and hide discount messages
Remove Hidden Line Item Properties
{% assign first_character_in_key = p.first | truncate: 1, '' %}
{% unless p.last == blank or first_character_in_key == '_' %}
{% 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 href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}
{% endif %}
Calculate the Intelligems Discount (per line item and cumulative)
Hide the Strikethrough Price in the Cart
Hide the Discount Message
Integrating Using HandleBars
Last updated