I have a variable in Shopify that is a string version of a number:
product.metafields.custom_fields["total_records"] = "5324"
I want to output that like this:
5,324
I tried this:
{{ product.metafields.custom_fields["total_records"] | number }}
But it didn't do anything
尝试使用资金过滤器进行格式化,并舍弃所有小数位。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.