Quantity with no delimiter

Subscribe to Quantity with no delimiter 2 post(s), 2 voice(s)

 
Avatar Heather 8 post(s)

I need to modify the number display for Quantity on an invoice template to not show the delimiter and just show a whole number. In this particular case having the decimal is confusing since I am invoicing people for ticket sales.

{% if item.quantity == 0 }
{
else }
{ item.quantity | number_with_delimiter: ‘,’ }}
{
endif %}

I tried deleting it, using “number_without_delimiter”, “number_no_delimiter”, “number”, etc. but nothing worked. Please help! Thanks!

 
Avatar Seth - Subimage LLC Administrator 445 post(s)

Hey Heather,

Unfortunately right now there’s not a way to do that with the template system.

Please go vote for this feature request on our feature request site and add your comments about wanting to make it possible to do this from liquid templates.

I’ve fielded a couple of other requests for this via email, so it seems like a fairly common request. It will make its way into the software eventually, but it helps if we have reminders on the feature request forum.

- Seth