Is it possible to have decimal values for product quantity

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
madasha
Posts: 1
Joined: 09 Sep 2018, 21:18

Is it possible to have decimal values for product quantity

Post by madasha » 09 Sep 2018, 21:24

Hello, I am using Aimeos for Laravel for the past 6 months or so and I find it great. I only have one problem that I am trying to find a solution for: I'd like to sell stuff that is sold in kilos, meaning that people might want to buy fractions, instead of whole numbers, e.g.: 1.2 kg of pale ale malt.

My question is: Is there an efficient way (without having to make a lot of changes to underlying DB and related models) to make product quantities work with fractions/decimals and be able to purchase for example 2.4 of something.

I hope I made myself clear, if not, please let me know, so that I can clarify the question further.

David Haška
Posts: 10
Joined: 30 Aug 2018, 17:08

Re: Is it possible to have decimal values for product quanti

Post by David Haška » 11 Sep 2018, 17:00

I also want to know that. Could anyone please answer this question? Thank you so much :))

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Is it possible to have decimal values for product quanti

Post by aimeos » 11 Sep 2018, 20:10

Not yet. You have to change the column definition in the mshop_order_base_product table and adapt the item. Would be great if you create a pull request so we can merge it into the core :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply