Page 1 of 1

Stock in format Decimal

Posted: 19 Jun 2020, 00:31
by gcastaneda
I want, than the stock variable of products table, change to format decimal. because i am making a portal of a supermarket y they sale meats, vegetables. These products are of format decimal (kilograme).

Someone could advise me to make the adjustment locally.

Thanks,

Re: Stock in format Decimal

Posted: 22 Jun 2020, 12:11
by Jan
Hi, for now, there is no such option, so:

- it needs to be changed i database (column type from integer e.g. to decimal)
Image

- I think, even the calculation needs to be changed because integer is used there
administrator\components\com_phocacart\libraries\phocacart\cart\calculation.php
Image

Is there a problem to just e.g. sell the items like:

1 item of 400g of meat
1 item of 500g of vegetable, etc. :idea: