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