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 }}{%- comment -%}Bold:PO 2.0 - Hybrid Input{%- endcomment -%}
{%- if item.properties._boldBuilderId and item.properties._boldVariantIds == null -%}
{%- continue -%}
{%- endif -%}
{{ 'cart.label.product' | t }} | {{ 'cart.label.price' | t }} | {{ 'cart.label.quantity' | t }} | {{ 'cart.label.total' | t }} |
---|---|---|---|
{%- assign variant_options = 'template ’ | split: ’ ’ -%}
{%- comment -%} Line item properties come in as having two parts. The first part will be passed with the default form, For more info on line item properties, visit: {%- assign properties = 'template ’ | split: ’ ’ -%} {%- for p in properties -%} {{NextDiscountHtml}} |
{%- assign hasDiscount = false -%}
{%- comment -%} {%- comment -%} {%- assign itemDiscounts = 'template ’ | split: ’ ’ -%}
{{ '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 -%}
{%- comment -%}
{{ item.original_line_price | money }}
|
{%- 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>
{%- 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 -%}
{%- if additional_checkout_buttons -%}
{%- endif -%}
{{shop.metafields.wcp_net.netCartMsg}}
{{shop.metafields.wcp_net.netBtnMsg}}{% 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 %}
{{ 'cart.general.title' | t }}
{{ 'cart.general.empty' | t }}
{{ 'cart.general.cookies_required' | t }}
{% 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