Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025