1. Under “Section”, select cart-template.liquid.
2. Find the section that with:
{% for item in cart.items %}
3. Add the below code after this:
{% include 'PrintXpand-cart' with item %} {% assign count = count | plus: 1 %} {% if item.properties['_Design id'] %} {% continue %} {% endif %}
4. Find any reference of this code:
5. Replace them with the following code:
<a class="{{ PrintXpand_item_url_class }}" {{ PrintXpand_url_attr }} href="{{ item.url | within: collections.all }}"> {% if PrintXpand_item_img_src != blank %} <img class="cart__image PrintXpand-item-img-{{ item.product_id }}" src="{{ PrintXpand_item_img_src }}" alt="{{ item.title | escape }}"> {% else %} <img class="cart__image" src="{{ item | img_url: '95x95', scale: 2 }}" alt="{{ item.title | escape }}"> {% endif %}</a>
6. Find any reference of this code:
<a href="{{ item.url }}" class="cart__product-title" data-cart-item-title>{{ item.product.title }}</a>
7. Replace them with the following code:
<a class="{{ PrintXpand_item_url_class }}" {{ PrintXpand_url_attr }} href="{{ item.url }}">{{ item.product.title }}</a>
8. Find any reference of this code
{%- for p in properties -%} {%- unless p.last == blank -%}
{%- endunless -%} {%- endfor -%}
9. Replace them with the following code:
{% for p in item.properties %}
{% assign PrintXpand_product_property_first_character_in_key = p.first | truncate: 1, '' %}
{% unless p.last == blank or PrintXpand_product_property_first_character_in_key == '_' %}
{%if p.first contains 'Name Number' %}
{{ p.first }}:
{% else %}
{{ p.first }}
{% endif %}
{% comment %}
Check if there was an uploaded file associated
{% endcomment %}
{% if p.last contains '/uploads/' %}
{% elsif p.first contains ‘Name Number’ %} {{ p.last | replace: “,”, “,” }} {% else %} {{ p.last }} {% endif %} {% endunless %} {% endfor %}
10.Find any reference of this code
<a href="/cart/change?line={{ forloop.index }}&quantity=0" class="text-link text-link--accent" aria-label="{{ 'cart.general.remove' | t }} {{ item.product.title }}">{{ 'cart.general.remove' | t }}</a>
11. Replace them with the following code:
<a href="/cart/change?line={{ forloop.index }}&quantity=0" class="text-link text-link--accent {{ PrintXpand_remove_class }}" aria-label="{{ 'cart.general.remove' | t }} {{ item.product.title }}">{{ 'cart.general.remove' | t }}</a>
12. Find any reference of this code
<input class="cart__qty-input " type="number" name="updates[]" id="updates_large_{{ item.key }}" value="{{ item.quantity }}" min="0" pattern="[0-9]*" data-quantity-item="{{ forloop.index }}">
13. Replace with
<input class="cart__qty-input {{ PrintXpand_qty_class }}" {{ PrintXpand_qty_attr }} type="number" name="updates[]" id="updates_large_{{ item.key }}" value="{{ item.quantity }}" min="0" pattern="[0-9]*" data-quantity-item="{{ forloop.index }}">
14. Replace
{{ item.original_price | money }} to {{ individualTotalPrice| money}} and {{ item.final_price | money }} to {{ totalPrice|money}}.