Customer Notifications - Error in 'Order Cancellation' Code

Customer Notifications - Error in 'Order Cancellation' Code

ChristineM1
Shopify Partner
1 0 0

We have an issue with our partner sites' notification templates. There is an error in the code somewhere for 'Order Cancellation' where it states the wrong item quantities.

 

We use Shopify default customer notification templates for order cancellations (unedited). However, the emails being sent to customers have incorrect line quantity being stated. For example, on a recent order which only had one item, when the item was cancelled the email to the customer said items '1 of 2' have been refunded - but there were never 2 items in the order.

 

Does anyone know how to fix this? I've been talking to Shopify support about this, and they say it is a known issue but instead of fixing it they've suggested I speak to this community instead for a solution...!

 

The code seems to be somewhere around here:

 

{% if line.quantity < line.quantity %}
{% capture line_display %}
{{ line.quantity }} of {{ line.quantity }}
{% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}

 

Thanks!

Replies 0 (0)