Sometimes we have to make edits on a Shopify order if a customer ordered a wrong item. However, when the order confirmation flow is triggered after the order edit the customer sees both the newly added item and the removed item and has an incorrect total amount. Is there a way from preventing the removed item from appearing on the order confirmation?
Here’s the scripting on our current template:
{{ i.line_item.title }}
Quantity: {{ i.line_item.quantity }}
{% with x=i.item.variant.title %} {{ i.item.variant.title }}{% endwith %}
Total: ${{ i.line_item.final_line_price|floatformat:2 }}