Stock in format Decimal

Phoca Cart - complex e-commerce extension
gcastaneda
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 19 Jun 2020, 00:18

Stock in format Decimal

Post by gcastaneda » 19 Jun 2020, 00:31

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,

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 42650
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Stock in format Decimal

Post by Jan » 22 Jun 2020, 12:11

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:
If you find Phoca extensions useful, please support the project

Post Reply