Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I need a decimal Metafield in my store to store to display the weight of an item in a unique format (not g, oz, lb etc). I always want the number to display 2 decimal places (x.xx) but if I enter a whole number, it removes the decimal places. Does anyone know how to do this?
Here is an example:
Metafield Value = 1.00
The way it defaults is back to = 1
I always want it to display two numbers after the '.'
You should choose the decimal type. Enter the minimum and maximum values.
It looks like that would only allow me to set a MAXIMUM decimal places value. I need a MINIMUM decimal places value.
Currently, if I enter '2.00', it defaults back to '2' - I want it to display 2.00.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025