So i was customizing my notifications’ templates and I noticed this particular condition that seems impossible to ever resolve:
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
Not a big deal, but it’s in every mail template dealing with an order.
Hi @bbs-AnGr ,
I checked and your code is not correct. You can’t set the condition on itself, this will never happen:
What are you wanting? I can help you show it better.
Hope it is clear to you.
Sorry, my message was not clear:
this is not my code, this is the default code in (all) default emails that contain the list of products in an order.
I’m not trying to do anything with it, just reporting that this code cannot work (don’t know if there’s a better forum for it so here it is).
Hi @bbs-AnGr ,
With many years of experience, I really don’t understand what this condition is for. I found no at the Notifications.
Therefore, I recommend you contact Shopify for support. Because this code is generated by Shopify, so they will explain you in detail.
Hope it helps!