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.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025