Discussing Shopify Functions development, deployment, and usage in Shopify apps.
Hello,
I want to add product quantity in decimals, for example: 0.5, 1, 1.5, 2, 2.5 etc. How to do that.
Thanks.
Hi Pmt,
In Shopify, the quantity field only allows for whole numbers and does not support decimal quantities. This is because the system is designed to track inventory in whole units.
However, there are a few workarounds you could consider:
Product Variants: You can create product variants that represent the fractional amounts. For example, if you're selling fabric, instead of selling 0.5 yards as a quantity, you could create a variant called "Half Yard".
Use an App: There are existing apps in the Shopify app store, such as Convert+, that allow for fractional quantities. These apps allow you to sell products by weight, length, or other measurements.
Custom Development: If none of these solutions work for you, you might consider hiring a Shopify expert to customize your store's theme to support decimal quantities.
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
hi @pmt
It can be done with the help of custom code
Could you please help on these coding?
hi @TGW_Gunther
Yes definitely can i email you as this is a custom code and it depends which theme you are using also it depends how you want this code to be done