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?
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025