Jump to content

Store quantity in decimals (kilogramms instead of gramms) in PrestaShop 1.6.11


bimlas

Recommended Posts

Is it possible to store the quantity in decimals? We have a lot of products served in 0.5kg minimum, but the quantity can be choosen (1.12kg for example). It would be bad to store in gramms, I like to use kilogramm for quantity. Is it possible?

Link to comment
Share on other sites

It's not without changing many core files as well as the database. The latter is simple. But the change of all core files involved needs quite some effort. I remember appx. 15 to 20 files need to be changed at several places.

 

Workaround to overcome the most critical limiations: Change the unit from kg to gramm or 100 gramm and set 500 or 5 as minimum quantity.

Edited by Scully (see edit history)
Link to comment
Share on other sites

We have 1 hour at a price and 1/4 hour at another price. 3/4 hours are billed by choosing 3x the 1/4 hour. I understand this is not an option for you. It wasn't meant as such but only to show that the decimal issue can be worked around at least partially.

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...