card drawer show amount for free delivery
parent
90883c9bbd
commit
1d74cf64d2
|
@ -479,87 +479,89 @@
|
|||
<div id="CartDrawer-CartErrors" role="alert"></div>
|
||||
</form>
|
||||
</cart-drawer-items>
|
||||
<div class="drawer__footer">
|
||||
{%- if settings.show_cart_note -%}
|
||||
<details id="Details-CartDrawer">
|
||||
<summary>
|
||||
<span class="summary__title">
|
||||
{{ 'sections.cart.note' | t }}
|
||||
{% render 'icon-caret' %}
|
||||
</span>
|
||||
</summary>
|
||||
<cart-note class="cart__note field">
|
||||
<label class="visually-hidden" for="CartDrawer-Note">{{ 'sections.cart.note' | t }}</label>
|
||||
<textarea
|
||||
id="CartDrawer-Note"
|
||||
class="text-area text-area--resize-vertical field__input"
|
||||
name="note"
|
||||
placeholder="{{ 'sections.cart.note' | t }}"
|
||||
>{{ cart.note }}</textarea>
|
||||
</cart-note>
|
||||
</details>
|
||||
{%- endif -%}
|
||||
<div class="shx-drawer__inner-padding">
|
||||
<div class="drawer__footer">
|
||||
{%- if settings.show_cart_note -%}
|
||||
<details id="Details-CartDrawer">
|
||||
<summary>
|
||||
<span class="summary__title">
|
||||
{{ 'sections.cart.note' | t }}
|
||||
{% render 'icon-caret' %}
|
||||
</span>
|
||||
</summary>
|
||||
<cart-note class="cart__note field">
|
||||
<label class="visually-hidden" for="CartDrawer-Note">{{ 'sections.cart.note' | t }}</label>
|
||||
<textarea
|
||||
id="CartDrawer-Note"
|
||||
class="text-area text-area--resize-vertical field__input"
|
||||
name="note"
|
||||
placeholder="{{ 'sections.cart.note' | t }}"
|
||||
>{{ cart.note }}</textarea>
|
||||
</cart-note>
|
||||
</details>
|
||||
{%- endif -%}
|
||||
|
||||
<!-- Start blocks -->
|
||||
<!-- Subtotals -->
|
||||
<!-- Start blocks -->
|
||||
<!-- Subtotals -->
|
||||
|
||||
<div class="cart-drawer__footer" {{ block.shopify_attributes }}>
|
||||
<div>
|
||||
{%- if cart.cart_level_discount_applications.size > 0 -%}
|
||||
<ul class="discounts list-unstyled" role="list" aria-label="{{ 'customer.order.discount' | t }}">
|
||||
{%- for discount in cart.cart_level_discount_applications -%}
|
||||
<li class="discounts__discount discounts__discount--end">
|
||||
{%- render 'icon-discount' -%}
|
||||
{{ discount.title }}
|
||||
(-{{ discount.total_allocated_amount | money }})
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{%- endif -%}
|
||||
<div class="cart-drawer__footer" {{ block.shopify_attributes }}>
|
||||
<div>
|
||||
{%- if cart.cart_level_discount_applications.size > 0 -%}
|
||||
<ul class="discounts list-unstyled" role="list" aria-label="{{ 'customer.order.discount' | t }}">
|
||||
{%- for discount in cart.cart_level_discount_applications -%}
|
||||
<li class="discounts__discount discounts__discount--end">
|
||||
{%- render 'icon-discount' -%}
|
||||
{{ discount.title }}
|
||||
(-{{ discount.total_allocated_amount | money }})
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
|
||||
<div class="totals" role="status">
|
||||
<h2 class="totals__total">{{ 'sections.cart.estimated_total' | t }}</h2>
|
||||
<p class="totals__total-value">{{ cart.total_price | money_with_currency }}</p>
|
||||
</div>
|
||||
|
||||
<small class="tax-note caption-large rte">
|
||||
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
|
||||
{{ 'sections.cart.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
|
||||
{%- elsif cart.taxes_included -%}
|
||||
{{ 'sections.cart.taxes_included_but_shipping_at_checkout' | t }}
|
||||
{%- elsif shop.shipping_policy.body != blank -%}
|
||||
{{ 'sections.cart.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
|
||||
{%- else -%}
|
||||
{{ 'sections.cart.taxes_and_shipping_at_checkout' | t }}
|
||||
{%- endif -%}
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<div class="totals" role="status">
|
||||
<h2 class="totals__total">{{ 'sections.cart.estimated_total' | t }}</h2>
|
||||
<p class="totals__total-value">{{ cart.total_price | money_with_currency }}</p>
|
||||
</div>
|
||||
<!-- CTAs -->
|
||||
|
||||
<small class="tax-note caption-large rte">
|
||||
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
|
||||
{{ 'sections.cart.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
|
||||
{%- elsif cart.taxes_included -%}
|
||||
{{ 'sections.cart.taxes_included_but_shipping_at_checkout' | t }}
|
||||
{%- elsif shop.shipping_policy.body != blank -%}
|
||||
{{ 'sections.cart.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
|
||||
{%- else -%}
|
||||
{{ 'sections.cart.taxes_and_shipping_at_checkout' | t }}
|
||||
{%- endif -%}
|
||||
</small>
|
||||
</div>
|
||||
<div class="cart__ctas" {{ block.shopify_attributes }}>
|
||||
<noscript>
|
||||
<button type="submit" class="cart__update-button button button--secondary" form="CartDrawer-Form">
|
||||
{{ 'sections.cart.update' | t }}
|
||||
</button>
|
||||
</noscript>
|
||||
|
||||
<!-- CTAs -->
|
||||
|
||||
<div class="cart__ctas" {{ block.shopify_attributes }}>
|
||||
<noscript>
|
||||
<button type="submit" class="cart__update-button button button--secondary" form="CartDrawer-Form">
|
||||
{{ 'sections.cart.update' | t }}
|
||||
<button
|
||||
type="submit"
|
||||
id="CartDrawer-Checkout"
|
||||
class="cart__checkout-button button"
|
||||
name="checkout"
|
||||
form="CartDrawer-Form"
|
||||
{% if cart == empty %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
{{ 'sections.cart.checkout' | t }}
|
||||
</button>
|
||||
</noscript>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
id="CartDrawer-Checkout"
|
||||
class="cart__checkout-button button"
|
||||
name="checkout"
|
||||
form="CartDrawer-Form"
|
||||
{% if cart == empty %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
{{ 'sections.cart.checkout' | t }}
|
||||
</button>
|
||||
{% render 'shx-payment-list' %}
|
||||
</div>
|
||||
|
||||
{% render 'shx-payment-list' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue