Jump to content

How to change quantity field type.


Recommended Posts

Hi,

 

I have some products that quantity is 2,7 or 45,6 so its not integer.

How to change type of the quantity field in order Prestashop accept these values?

 

Can this change affect something else?

Link to comment
Share on other sites

Thank you for taking interest in my case here.

 

Yes, that does sound like a solution, although kilograms are much more "friendly" when it comes to the products that I'm selling.

If changing the type of the quantity filed from INT to DECIMAL for example in the ps_products wont affect anything else I would go for that solution.

 

Mr Vekia, what do you say?

Link to comment
Share on other sites

I do.

 

For example freon gas which is sold in the bottles of 13.8kg 12.6 kg etc...

Or some rubbers that are sold in metars, like 6.5m and so on

 

I just cant use cm, mm or grams as it not ""natural" in these situations.

Link to comment
Share on other sites

Hm thats true, I could do that but problem is that I need this value to be in the proper field and not in the short description.

 

I need that because Im making my CSV files automatically exporting some data from the software we are using in our company for every day tasks.

 

So I need values of the quantity to be decimal in the quantity field and no other.

Link to comment
Share on other sites

you may not have already done so but you can set the shop measurement values under back office-->localization

 

06.27.2013-18.39.14.png

http://screencast.com/t/eD3UgbDq

 

You could then set up combinations by product say for example different sizes of bottles. Note: attributes supports a fixed (you define) value for a product, it's doesn't support say the customer wanting x cm of a particular product.

Edited by El Patron
change attributes to combinations (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...