Shopify themes, liquid, logos, and UX
Is there code to help to rearrange how shipping/insurance is listed at Checkout and on the Order Confirmation email?
Please see screenshots, I would like "Route Protection" to be listed last if a customer applies it to an order.
Not sure about the cart, but I had to do something similar for a packing list. I'm guessing the same approach would work for a confirmation.
Add an unless statement inside your for loop for the line items. So, for example:
{% for line in subtotal_line_items %}
{% unless line.product.title == 'Route Package Protection' %}
.
. (all the line item stuff in here)
.
{% endunless %}
{% endfor %}
You can then duplicate that whole for loop, but replace the unless with an if.
The first for loop will list every item except for your Route Package Protection, and the second for loop will list only occurrences of Route Package Protection.
Make sense?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024