From 584456f7141d9a6f70327244f3e885bea460cf65 Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Fri, 13 Oct 2023 14:24:50 +0100 Subject: [PATCH] Primary emojis on address list in example templates --- .../dist/shop/_private/address/list.twig | 12 +++++++++++- .../src/shop/_private/address/list.twig | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/example-templates/dist/shop/_private/address/list.twig b/example-templates/dist/shop/_private/address/list.twig index 9f451f3e6a..2386f7dff5 100644 --- a/example-templates/dist/shop/_private/address/list.twig +++ b/example-templates/dist/shop/_private/address/list.twig @@ -10,7 +10,7 @@
{% for address in addresses %} {% set editUrl = '/shop/customer/addresses/edit?addressId=' ~ address.id ~ '&redirect=' ~ craft.app.request.fullPath %} -
+
{% tag selectable ? 'label' : 'div' with { class: 'block relative address-select js-address-select', data: { @@ -49,6 +49,16 @@ {% endif %} {% endtag %} + {% if primaryBillingAddressId == address.id or primaryShippingAddressId == address.id %} +
+ {% if primaryBillingAddressId == address.id %} + 💳 + {% endif %} + {% if primaryShippingAddressId == address.id %} + 📦 + {% endif %} +
+ {% endif %}
{% endfor %} {% if showAdd %} diff --git a/example-templates/src/shop/_private/address/list.twig b/example-templates/src/shop/_private/address/list.twig index 0c97f062a8..d653691ea6 100644 --- a/example-templates/src/shop/_private/address/list.twig +++ b/example-templates/src/shop/_private/address/list.twig @@ -10,7 +10,7 @@
{% for address in addresses %} {% set editUrl = '/[[folderName]]/customer/addresses/edit?addressId=' ~ address.id ~ '&redirect=' ~ craft.app.request.fullPath %} -
+
{% tag selectable ? 'label' : 'div' with { class: 'block relative address-select js-address-select', data: { @@ -49,6 +49,16 @@ {% endif %} {% endtag %} + {% if primaryBillingAddressId == address.id or primaryShippingAddressId == address.id %} +
+ {% if primaryBillingAddressId == address.id %} + 💳 + {% endif %} + {% if primaryShippingAddressId == address.id %} + 📦 + {% endif %} +
+ {% endif %}
{% endfor %} {% if showAdd %}