Why are original prices not showing in my cart?

Hi Guys,

I have few questions:

1-In the cart, original prices are not Shown in the price coloum.

2- How to add the total saving before the subtotal.

cart-template.liquid

{{ 'cart.general.title' | t }}

{{ 'cart.general.continue_shopping' | t }}
{%- for item in cart.items -%} {%- include 'wcp_discount' with item.product -%} {%- include 'wcp_variant' with item.variant -%} {% include 'wcp_vd_discount' with item %} {% assign wcp_custom_final_Price = item.final_price %} {% if wcp_v_price < wcp_custom_final_Price %} {% assign wcp_line_price = wcp_v_price | floor | minus: 0 | times: item.quantity %} {% else %} {% assign wcp_line_price = wcp_custom_final_Price | floor | minus: 0 | times: item.quantity %} {% endif %}

{%- comment -%}Bold:PO 2.0 - Hybrid Input{%- endcomment -%}
{%- if item.properties._boldBuilderId and item.properties._boldVariantIds == null -%}

{%- continue -%}
{%- endif -%}

{%- endfor -%}
{{ 'cart.label.product' | t }} {{ 'cart.label.price' | t }} {{ 'cart.label.quantity' | t }} {{ 'cart.label.total' | t }}
{{ item.image.alt | escape }}

{%- assign variant_options = 'template ’ | split: ’ ’ -%}
{%- if item.product.has_only_default_variant != true -%}
{%- assign variant_options = item.options_with_values -%}
{%- endif -%}
{%- assign property_size = item.properties | size -%}

    {%- for option in variant_options -%}
  • {{ option.name }}: {{ option.value }}
  • {%- endfor -%}

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

    Line item properties come in as having two parts. The first part will be passed with the default form,
    but p.last is the actual custom property and may be blank. If it is, don’t show it.

    For more info on line item properties, visit:

    {%- assign properties = 'template ’ | split: ’ ’ -%}
    {%- if property_size > 0 -%}
    {%- assign properties = item.properties -%}
    {%- endif -%}

    {%- for p in properties -%}
    {%- if p.first.first == ‘_’ -%}{%- continue -%}{%- endif -%}
    {%- unless p.last == blank or p.first contains ‘pf’ -%}

  • {{ p.first }}:

    {%- comment -%}
    Check if there was an uploaded file associated
    {%- endcomment -%}

    {%- if p.last contains ‘/uploads/’ -%}
    {{ p.last | split: ‘/’ | last }}
    {%- else -%}
    {{ p.last }}
    {%- endif -%}

  • {%- endunless -%} {%- endfor -%}

{{NextDiscountHtml}}

{{ 'cart.general.remove' | t }}

{%- assign hasDiscount = false -%}
{%- if wcp_v_compare_at_price != wcp_v_price -%}
{%- assign hasDiscount = true -%}
{%- endif -%}

{%- comment -%} Markup template for discount item {%- endcomment -%}
{{ 'products.product.regular_price' | t }}
{{ wcp_v_compare_at_price | money }}
{{ 'products.product.sale_price' | t }}
{{ wcp_v_price | money }}

{%- comment -%}
Markup template for regular price item
{%- endcomment -%}

{{ 'products.product.regular_price' | t }}
{{ wcp_v_compare_at_price | money }}

{%- comment -%}
Markup template for unit price
{%- endcomment -%}

{{ 'products.product.unit_price_label' | t }}
{%- capture unit_price_separator -%} /{{ 'general.accessibility.unit_price_separator' | t }}  {%- endcapture -%} {%- capture unit_price_base_unit -%} {%- if item.unit_price_measurement.reference_value != 1 -%} {{- item.unit_price_measurement.reference_value -}} {%- endif -%} {{ item.unit_price_measurement.reference_unit }} {%- endcapture -%}

{{ item.unit_price | money }}{{- unit_price_separator -}}{{- unit_price_base_unit -}}

{%- assign itemDiscounts = 'template ’ | split: ’ ’ -%}
{%- if item.line_level_discount_allocations != blank -%}
{%- assign itemDiscounts = item.line_level_discount_allocations -%}
{%- endif -%}

    {%- for discount_allocation in itemDiscounts -%}
  • {% include 'icon-saletag' %} {{- discount_allocation.discount_application.title -}} (-{{ discount_allocation.amount | money }})
  • {%- endfor -%}
{{ 'cart.label.qty' | t }}
{{ 'general.accessibility.error' | t }} {% include 'icon-error' %}
{{ 'cart.label.quantity' | t }}
{{ 'general.accessibility.error' | t }} {% include 'icon-error' %}
{%- comment -%} Markup template for discount item {%- endcomment -%}
{{ 'cart.label.regular_total' | t }}
{{ item.original_line_price | money }}
{{ 'cart.label.discounted_total' | t }}
{{ wcp_line_price | money }}

{%- comment -%}
Markup template for regular price item
{%- endcomment -%}

{{ item.original_line_price | money }}
{%- if section.settings.cart_notes_enable -%}
{{ 'cart.general.note' | t }} {{ cart.note }}
{%- endif -%}

{%- assign cartDiscounts = 'template ’ | split: ’ ’ -%}
{%- if cart.cart_level_discount_applications.size > 0 -%}
{%- assign cartDiscounts = cart.cart_level_discount_applications -%}
{%- endif -%}
<div{% if cart.cart_level_discount_applications.size == 0 %} class=“hide”{% endif %} data-cart-discount-wrapper>

{%- for discount_application in cartDiscounts -%} {% include 'icon-saletag' %}{{ 'customer.order.discount' | t }}:{{- discount_application.title -}} -{{ discount_application.total_allocated_amount | money }} {%- endfor -%}
{{ 'cart.general.subtotal' | t }} {{ cart.total_price | money}}

{%- capture taxes_shipping_checkout -%}
{%- if shop.taxes_included and shop.shipping_policy.body != blank -%}
{{ ‘cart.general.taxes_included_and_shipping_policy_html’ | t: link: shop.shipping_policy.url }}
{%- elsif shop.taxes_included -%}
{{ ‘cart.general.taxes_included_but_shipping_at_checkout’ | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ ‘cart.general.taxes_and_shipping_policy_at_checkout_html’ | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ ‘cart.general.taxes_and_shipping_at_checkout’ | t }}
{%- endif -%}
{%- endcapture -%}

{{ taxes_shipping_checkout }}
{%- unless section.settings.cart_ajax_enable -%} {%- endunless -%}
{{ 'general.accessibility.error' | t }} {% include 'icon-error' %}

{%- if additional_checkout_buttons -%}

{{ content_for_additional_checkout_buttons }}

{%- endif -%}

{% if customer.tags contains "wpdnet" %} {% if shop.metafields.wcp_net.isNetEnabled == "true" or shop.metafields.wcp_net.isNetEnabled == "1" %}

{{shop.metafields.wcp_net.netCartMsg}}

{{shop.metafields.wcp_net.netBtnMsg}}
{% endif %} {% endif %}

{% comment %} WPD SmileIO integration code starts{% endcomment %}
{% assign is_wcp_wholesale_customer = false %}
{% assign active_discounts = shop.metafields.wcp_active_discounts.wcp_active_discounts %}
{% assign active_discounts_array = active_discounts | split: ‘,’ %}
{% if shop.metafields.wcp_status.wcp_status != ‘disabled’ and customer %}
{% for discount_key in active_discounts_array %}
{% assign key_split = discount_key | split: ‘-’ %}
{% assign key_split_length = key_split | size %}
{% if key_split_length > 2 %}
{% assign removeable_key = key_split.last | prepend: ‘-’ %}
{% assign wcp_hide_sale_badge_customer_tag = discount_key | remove_first: removeable_key %}
{% else %}
{% assign wcp_hide_sale_badge_customer_tag = key_split[0] %}
{% endif %}
{% if customer.tags contains wcp_hide_sale_badge_customer_tag %}
{% assign is_wcp_wholesale_customer = true %}
{% endif %}
{% endfor %}
{% endif %}
{% if is_wcp_wholesale_customer == true %}

Loyalty Points Redeem
{% endif %} {% comment %} WPD SmileIO integration code ends{% endcomment %}

{{ 'cart.general.title' | t }}

{{ 'cart.general.empty' | t }}

{{ 'cart.general.cookies_required' | t }}

{{ 'general.404.link' | t }}{% include 'icon-arrow-right' %}

{% schema %}
{
“name”: {
“da”: “Side med indkøbskurv”,
“de”: “Warenkorb-Seite”,
“en”: “Cart page”,
“es”: “Página del carrito de compras”,
“fi”: “Ostoskorisivu”,
“fr”: “Page du panier”,
“hi”: “कार्ट पेज”,
“it”: “Pagina del carrello”,
“ja”: “カートページ”,
“ko”: “카트 페이지”,
“ms”: “Halaman troli”,
“nb”: “Handlekurvside”,
“nl”: “Winkelwagenpagina”,
“pt-BR”: “Página do carrinho”,
“pt-PT”: “Página do carrinho”,
“sv”: “Varukorgssida”,
“th”: “หน้าตะกร้าสินค้า”,
“zh-CN”: “购物车页面”,
“zh-TW”: “購物車頁面”
},
“settings”: [
{
“type”: “checkbox”,
“id”: “cart_ajax_enable”,
“label”: {
“da”: “Aktivér automatisk opdatering af indkøbskurv”,
“de”: “Automatische Warenkorbaktualisierungen aktivieren”,
“en”: “Enable automatic cart updates”,
“es”: “Habilitar las actualizaciones automáticas del carrito de compra”,
“fi”: “Ota automaattinen ostoskorin päivitykset käyttöön”,
“fr”: “Activer les mises à jour automatiques”,
“hi”: “स्वचालित कार्ट अपडेट सक्षम करें”,
“it”: “Abilita aggiornamenti automatici carrello”,
“ja”: “自動カートの更新を有効にする”,
“ko”: “자동 카트 업데이트 활성화하기”,
“ms”: “Dayakan kemas kini troli automatik”,
“nb”: “Aktiver automatiske oppdateringer av handlekurven”,
“nl”: “Automatische winkelwagen-updates inschakelen”,
“pt-BR”: “Permitir atualizações automáticas do carrinho”,
“pt-PT”: “Ativar atualizações automáticas do carrinho”,
“sv”: “Aktivera automatiska uppdateringar av varukorgen”,
“th”: “เปิดใช้งานการอัปเดตตะกร้าสินค้าอัตโนมัติ”,
“zh-CN”: “启用购物车自动更新功能”,
“zh-TW”: “啟用自動更新購物車”
},
“info”: {
“da”: “Opdaterer indkøbskurven, så snart kunden foretager ændringer”,
“de”: “Aktualisiert den Warenkorb, sobald Kundenänderungen vorgenommen werden”,
“en”: “Updates the cart as soon as customer changes are made”,
“es”: “Actualiza el carrito de compra tan pronto como el cliente realice cambios”,
“fi”: “Päivittää ostoskorin heti, kun asiakkaan muutokset on tehty”,
“fr”: “Mise à jour du panier dès que les modifications apportées aux clients ont été effectuées”,
“hi”: “ग्राहक के द्वारा परिवर्तन करते ही कार्ट को अपडेट हो जाता है”,
“it”: “Aggiorna il carrello appena il cliente apporta le modifiche”,
“ja”: “お客様が変更されるとすぐにカートを更新します”,
“ko”: “고객 변경 시 카트를 업데이트합니다.”,
“ms”: “Kemas kini troli sebaik sahaja perubahan pelanggan dibuat”,
“nb”: “Oppdaterer handlekurven så snart kundens endringer er gjort”,
“nl”: “De winkelwagen wordt bijgewerkt zodra de klant wijzigingen aanbrengt”,
“pt-BR”: “Atualiza o carrinho assim que o cliente faz alterações”,
“pt-PT”: “Atualiza o carrinho assim que o cliente faz alterações”,
“sv”: “Uppdaterar varukorgen så snart kundändringar görs”,
“th”: “อัปเดตตะกร้าสินค้าเมื่อลูกค้าได้ทำการเปลี่ยนแปลง”,
“zh-CN”: “客户做出更改后立即更新购物车”,
“zh-TW”: “在顧客進行變更時立即更新購物車”
},
“default”: true
},
{
“type”: “checkbox”,
“id”: “cart_notes_enable”,
“label”: {
“da”: “Aktivér bemærkninger til indkøbskurv”,
“de”: “Warenkorb-Notifikationen erlauben”,
“en”: “Enable cart notes”,
“es”: “Habilitar notas de carrito”,
“fi”: “Ota ostoskorin huomautukset käyttöön”,
“fr”: “Activer les notes de panier”,
“hi”: “कार्ट नोट्स सक्षम करें”,
“it”: “Abilita note carrello”,
“ja”: “カートメモを有効にする”,
“ko”: “카트 참고 사항 사용”,
“ms”: “Dayakan nota troli”,
“nb”: “Aktiver handlekurvmerknader”,
“nl”: “Opmerkingen voor winkelwagen inschakelen”,
“pt-BR”: “Habilitar observações sobre o carrinho”,
“pt-PT”: “Ativar notas do carrinho”,
“sv”: “Aktivera varukorgsmeddelanden”,
“th”: “เปิดใช้หมายเหตุของตะกร้าสินค้า”,
“zh-CN”: “启用购物车备注”,
“zh-TW”: “啟用購物車備註”
},
“default”: false
}
]
}
{% endschema %}

Thank you

allianceautoproducts.com

How is that?