<commit_before><!-- /templates/cart.liquid -->
{% comment %}

  For info on test orders:
    - General http://docs.shopify.com/manual/your-store/orders/test-orders
    - Shopify Payments - http://docs.shopify.com/manual/more/shopify-payments/testing-shopify-payments

{% endcomment %}

{% if cart.item_count > 0 %}

  <h1 class="visually-hidden">{{ 'cart.general.title' | t }}</h1>
  <form action="/cart" method="post" novalidate class="cart table-wrap">
    <table class="cart-table full table--responsive">
      <thead class="cart__row cart__header-labels">
        <th colspan="2" class="text-left">{{ 'cart.label.product' | t }}</th>
        <th class="text-center">{{ 'cart.label.price' | t }}</th>
        <th class="text-center">{{ 'cart.label.quantity' | t }}</th>
        <th class="text-center">{{ 'cart.label.total' | t }}</th>
      </thead>
      <tbody>
        {% for item in cart.items %}
          <tr class="cart__row table__section">
            <td data-label="{{ 'customer.order.product' | t }}" class="thumbnail">

              <a href="{{ item.url | within: collections.all }}" class="cart__image">
                {% comment %}
                  More image size options at:
                    - http://docs.shopify.com/themes/filters/product-img-url
                {% endcomment %}
                <img src="{{ item | img_url: 'medium' }}" alt="{{ item.title | escape }}">
              </a>

            </td>
            <td class="details">
              <a href="{{ item.url }}" class="h4 title">
                {{ item.product.title }}
              </a>

              {% if settings.cart_vendor_enable %}
                <p class="vendor">{{ item.vendor }}</p>
              {% endif %}

              {% comment %}
                ### NOTE KLT061516: Added containing element for variants
              {% endcomment %}
              <div class="variants">
                {% unless item.variant.title contains 'Default' %}
                  <br>
                  <small>{{ item.variant.title }}</small>
                {% endunless %}
              </div>

              {% comment %}
                ### NOTE KLT061516: Added containing element for additional properties
              {% endcomment %}
              <div class="properties">

                {% comment %}
                  Custom InfiniteOptions implementation
                {% endcomment %}
                {% for p in item.properties %}
                  {% unless p.last == blank %}
                    <br /><small>{{p.first}}</small>: {{ p.last }}
                  {% endunless %}
                {% endfor %}

                {% comment %}
                  Optional, loop through custom product line items if available

                  For more info on line item properties, visit:
                    - http://docs.shopify.com/support/your-store/products/how-do-I-collect-additional-information-on-the-product-page-Like-for-a-monogram-engraving-or-customization
                {% endcomment %}
                {% 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>

              <a href="/cart/change?line={{ forloop.index }}&amp;quantity=0" class="cart__remove">
                <small>{{ 'cart.general.remove' | t }}</small>
              </a>
            </td>
            <td data-label="{{ 'cart.label.price' | t }}" class="price">
              <span class="h3 price">
                {{ item.price | money }}
              </span>
            </td>
            <td data-label="{{ 'cart.label.quantity' | t }}" class="quantity">
              <input type="number" name="updates[]" id="updates_{{ item.id }}" value="{{ item.quantity }}" min="0">
            </td>
            <td data-label="{{ 'cart.label.total' | t }}" class="text-right total">
              {% if item.original_line_price != item.line_price %}
                <span class="cart-item__original-price"><s>{{ item.original_line_price | money }}</s></span>
              {% endif %}
              <span class="h3 price">
                {{ item.line_price | money }}
              </span>
              {% for discount in item.discounts %}
                <span class="cart-item__discount">{{ discount.title }}</span>
              {% endfor %}
            </td>
          </tr>
        {% endfor %}

        {% comment %}
          ### NOTE KLT061516: Moved total/update information to bottom row of table, for striping
                              - Everything within the <div /> was previously directly after the table
        {% endcomment %}
        <tr class="cart__row table__section">
          <td colspan="5" class="summary">

            <div class="grid cart__row">
              {% if settings.cart_notes_enable %}
                <div class="grid__item two-thirds small--one-whole hide">
                  <label for="CartSpecialInstructions">{{ 'cart.general.note' | t }}</label>
                  <textarea name="note" class="input-full" id="CartSpecialInstructions">{{ cart.note }}</textarea>
                </div>
              {% endif %}
              {% comment %}
                ### NOTE KLT061516: Added grid item for shipping note and "Keep Shopping" button
              {% endcomment %}
              <div class="grid__item two-thirds small--one-whole">

                {% comment %}
                  ### TODO KLT061516: There is currently no resource corresponding to this label.
                {% endcomment %}
                <a href="/collections/all" class="btn--secondary">Keep Shopping</a>

              </div>
              <div class="grid__item text-right{% if settings.cart_notes_enable %} one-third small--one-whole{% endif %}">
                <p>
                  <span class="cart__subtotal-title">{{ 'cart.general.subtotal' | t }}</span><commit_msg>Cart options and labels adjustments/integration<commit_after><!-- /templates/cart.liquid -->
{% comment %}

  For info on test orders:
    - General http://docs.shopify.com/manual/your-store/orders/test-orders
    - Shopify Payments - http://docs.shopify.com/manual/more/shopify-payments/testing-shopify-payments

{% endcomment %}

{% if cart.item_count > 0 %}

  <h1 class="visually-hidden">{{ 'cart.general.title' | t }}</h1>
  <form action="/cart" method="post" novalidate class="cart table-wrap">
    <table class="cart-table full table--responsive">
      <thead class="cart__row cart__header-labels">
        <th colspan="2" class="text-left">{{ 'cart.label.product' | t }}</th>
        <th class="text-center">{{ 'cart.label.price' | t }}</th>
        <th class="text-center">{{ 'cart.label.quantity' | t }}</th>
        <th class="text-center">{{ 'cart.label.total' | t }}</th>
      </thead>
      <tbody>
        {% for item in cart.items %}
          <tr class="cart__row table__section">
            <td data-label="{{ 'customer.order.product' | t }}" class="thumbnail">

              <a href="{{ item.url | within: collections.all }}" class="cart__image">
                {% comment %}
                  More image size options at:
                    - http://docs.shopify.com/themes/filters/product-img-url
                {% endcomment %}
                <img src="{{ item | img_url: 'medium' }}" alt="{{ item.title | escape }}">
              </a>

            </td>
            <td class="details">
              <a href="{{ item.url }}" class="h4 title">
                {{ item.product.title }}
              </a>

              {% if settings.cart_vendor_enable %}
                <p class="vendor">{{ item.vendor }}</p>
              {% endif %}

              {% comment %}
                ### NOTE KLT061516: Added containing element for variants
              {% endcomment %}
              <div class="variants">
                {% unless item.variant.title contains 'Default' %}
                  <br>
                  <small>{{ item.variant.title }}</small>
                {% endunless %}
              </div>

              {% comment %}
                ### NOTE KLT061516: Added containing element for additional properties
              {% endcomment %}
              <div class="properties">

                {% comment %}
                  Optional, loop through custom product line items if available

                  For more info on line item properties, visit:
                    - http://docs.shopify.com/support/your-store/products/how-do-I-collect-additional-information-on-the-product-page-Like-for-a-monogram-engraving-or-customization

                  ### NOTE KLT061616: Merged recommended InfiniteOptions display with the below/pre-existing Timber implementation
                {% endcomment %}
                {% assign property_size = item.properties | size %}
                {% if property_size > 0 %}
                  {% for p in item.properties %}
                    {% unless p.last == blank %}

                      <p>
                      {% if p.first contains 'cuttingInstructions' %}
                        {{ 'cart.general.item_cutting_instructions' | t }}:
                      {% elsif p.first contains 'specialInstructions' %}
                        {{ settings.label_special_instructions }}:
                      {% else %}
                        {{ p.first }}:
                      {% endif %}

                      {% 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 %}

                      </p>
                    {% endunless %}
                  {% endfor %}
                {% endif %}

              </div>

              <a href="/cart/change?line={{ forloop.index }}&amp;quantity=0" class="cart__remove">
                <small>{{ 'cart.general.remove' | t }}</small>
              </a>
            </td>
            <td data-label="{{ 'cart.label.price' | t }}" class="price">
              <span class="h3 price">
                {{ item.price | money }}
              </span>
            </td>
            <td data-label="{{ 'cart.label.quantity' | t }}" class="quantity">
              <input type="number" name="updates[]" id="updates_{{ item.id }}" value="{{ item.quantity }}" min="0">
            </td>
            <td data-label="{{ 'cart.label.total' | t }}" class="text-right total">
              {% if item.original_line_price != item.line_price %}
                <span class="cart-item__original-price"><s>{{ item.original_line_price | money }}</s></span>
              {% endif %}
              <span class="h3 price">
                {{ item.line_price | money }}
              </span>
              {% for discount in item.discounts %}
                <span class="cart-item__discount">{{ discount.title }}</span>
              {% endfor %}
            </td>
          </tr>
        {% endfor %}

        {% comment %}
          ### NOTE KLT061516: Moved total/update information to bottom row of table, for striping
                              - Everything within the <div /> was previously directly after the table
        {% endcomment %}
        <tr class="cart__row table__section">
          <td colspan="5" class="summary">

            <div class="grid cart__row">
              {% if settings.cart_notes_enable %}
                <div class="grid__item two-thirds small--one-whole hide">
                  <label for="CartSpecialInstructions">{{ 'cart.general.note' | t }}</label>
                  <textarea name="note" class="input-full" id="CartSpecialInstructions">{{ cart.note }}</textarea>
                </div>
              {% endif %}
              {% comment %}
                ### NOTE KLT061516: Added grid item for shipping note and "Keep Shopping" button
              {% endcomment %}
              <div class="grid__item two-thirds small--one-whole">

                <h3 class="order-weight-heading">{{ 'cart.general.order_weight' | t: weight: weight }}</h3>
                <p class="order-weight-disclaimer">{{ 'cart.general.shipping_disclaimer' | t }}</p>

                {% comment %}
                  ### TODO KLT061516: There is currently no resource corresponding to this label.
                {% endcomment %}
                <a href="/collections/all" class="btn--secondary">Keep Shopping</a>

              </div>
              <div class="grid__item text-right{% if settings.cart_notes_enable %} one-third small--one-whole{% endif %}">
                <p>
                  <span class="cart__subtotal-title">{{ 'cart.general.subtotal' | t }}</span>
{'fraction_non_alphanumeric': 0.1488791241528264, 'fraction_numerical': 0.006702912042898637, 'mean_word_length': 1.5245346869712353, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6500928', 'n_tokens_mistral': 3850, 'n_tokens_neox': 3375, 'n_words': 817}