Hi everyone,
Since my colleague no longer works with us, I have taken over our shopify store (B2B). I just don’t know much about Liquid.
I’ve managed to get them to add a personal reference when a customer places an order. When an order comes in, we take this reference and put it on the invoice that we create elsewhere in our company. However, I want that when a customer is in his overview of orders within Shopify, the personal reference is also visible there. So that the customers exaclty know which order was that.
So in this grid above, I actually want the Fulfillment status to be replaced with something like ‘Reference’.
Payment status is something we don’t use as well, since all our orders are paid with a invoice made on our finance department.
In your shopping cart you can enter your personal reference at ‘Klant referentie’ in the left bottom corner.
I think I need the change the code in customers/order.liquid. Which now looks like this:
# {{ 'customer.account.title' | t }}
{{ 'customer.account.return' | t }}
## {{ 'customer.order.title' | t: name: order.name }}
{%- assign order_date = order.created_at | time_tag: format: "date_at_time" -%}
{{ 'customer.order.date_html' | t: date: order_date }}
{%- if order.cancelled -%}
{%- assign cancelled_at = order.cancelled_at | time_tag: format: "date_at_time" -%}
{{ 'customer.order.cancelled_html' | t: date: cancelled_at }}
{{ 'customer.order.cancelled_reason' | t: reason: order.cancel_reason_label }}
{%- endif -%}
{%- for line_item in order.line_items -%}
{%- endfor -%}
{%- if order.cart_level_discount_applications != blank -%}
{%- for discount_application in order.cart_level_discount_applications -%}
{%- endfor -%}
{%- endif -%}
{%- for shipping_method in order.shipping_methods -%}
{%- endfor -%}
{%- for tax_line in order.tax_lines -%}
{%- endfor -%}
<table>
<tr>
<th>
{{ 'customer.order.product' | t }}
</th>
<th>
{{ 'customer.order.sku' | t }}
</th>
<th>
{{ 'customer.order.price' | t }}
</th>
<th>
{{ 'customer.order.quantity' | t }}
</th>
<th>
{{ 'customer.order.total' | t }}
</th>
</tr>
<th>
{{ line_item.title | link_to: line_item.product.url }}
{%- assign property_size = line_item.properties | size -%}
{% unless line_item.selling_plan_allocation == nil and property_size == 0 %}
{% unless line_item.selling_plan_allocation == nil %}
{{ line_item.selling_plan_allocation.selling_plan.name }}
{% endunless %}
{% if property_size != 0 %}
{% for property in line_item.properties %}
{% assign property_first_char = property.first | slice: 0 %}
{% if property.last != blank and property_first_char != '_' %}
{{ property.first }}:
{%- if property.last contains '/uploads/' -%}
{{ property.last | split: '/' | last }}
{%- else -%}
{{ property.last }}
{%- endif -%}
{% endif %}
{% endfor %}
{% endif %}
{% endunless %}
{%- if line_item.line_level_discount_allocations != blank -%}
{%- for discount_allocation in line_item.line_level_discount_allocations -%}
- {% include 'icon-saletag' %}{{ discount_allocation.discount_application.title }} (-{{ discount_allocation.amount | money }})
{%- endfor -%}
{%- endif -%}
{%- if line_item.fulfillment -%}
{%- assign created_at = line_item.fulfillment.created_at | time_tag: format: 'date' -%}
{{ 'customer.order.fulfilled_at_html' | t: date: created_at }}
{%- if line_item.fulfillment.tracking_url -%}
{{ 'customer.order.track_shipment' | t }}
{%- endif -%}
{{ line_item.fulfillment.tracking_company }}
{%- if line_item.fulfillment.tracking_number -%} #{{ line_item.fulfillment.tracking_number }} {%- endif -%}
{%- endif -%}
</th>
<td>
{{ line_item.sku }}
</td>
<dl>
{%- if line_item.original_price != line_item.final_price -%}
<dt>
{{ 'products.product.regular_price' | t }}
</dt>
<dd>
~~{{ line_item.original_price | money }}~~
</dd>
<dt>
{{ 'products.product.sale_price' | t }}
</dt>
<dd>
{{ line_item.final_price | money }}
</dd>
{%- else -%}
<dt>
{{ 'products.product.regular_price' | t }}
</dt>
<dd>
{{ line_item.original_price | money }}
</dd>
{%- endif -%}
{%- if line_item.unit_price_measurement -%}
<dt>
{{ 'products.product.unit_price_label' | t }}
</dt>
<dd>
{%- capture unit_price_separator -%}
/{{ 'general.accessibility.unit_price_separator' | t }}
{%- endcapture -%}
{%- capture unit_price_base_unit -%}
{%- if line_item.unit_price_measurement.reference_value != 1 -%}
{{- line_item.unit_price_measurement.reference_value -}}
{%- endif -%}
{{ line_item.unit_price_measurement.reference_unit }}
{%- endcapture -%}
{{ line_item.unit_price | money }}{{- unit_price_separator -}}{{- unit_price_base_unit -}}
</dd>
{%- endif -%}
</dl>
{{ line_item.quantity }}
{%- if line_item.original_line_price != line_item.final_line_price -%}
<dl>
<dt>
{{ 'products.product.regular_price' | t }}
</dt>
<dd>
~~{{ line_item.original_line_price | money }}~~
</dd>
<dt>
{{ 'products.product.sale_price' | t }}
</dt>
<dd>
{{ line_item.final_line_price | money }}
</dd>
</dl>
{%- else -%}
{{ line_item.original_line_price | money }}
{%- endif -%}
{{ 'customer.order.subtotal' | t }}
{{ order.line_items_subtotal_price | money }}
{{ 'customer.order.discount' | t }}
{% include 'icon-saletag' %}{{- discount_application.title -}}
{% include 'icon-saletag' %}{{- discount_application.title -}}
-{{ discount_application.total_allocated_amount | money }}
{{ 'customer.order.shipping' | t }} ({{ shipping_method.title }})
{{ shipping_method.price | money }}
{{ 'customer.order.tax' | t }} ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%)
{{ tax_line.price | money }}
{{ 'customer.order.total' | t }}
{{ order.total_price | money_with_currency }}
</table>
### {{ 'customer.order.billing_address' | t }}
**{{ 'customer.order.payment_status' | t }}:** {{ order.financial_status_label }}
{{ order.billing_address | format_address }}
### {{ 'customer.order.shipping_address' | t }}
**{{ 'customer.order.fulfillment_status' | t }}:** {{ order.fulfillment_status_label }}
{{ order.shipping_address | format_address }}
The webshop is: www.bickerykerst.nl
I notice I have a hard time explaning in the English language. If something is unclear or you need more information, please let me know.


