Prestashop 1.7 Change quantities from INT to FLOAT
up vote
0
down vote
favorite
I made the following:
In DATABASE I changed everywhere where quantities/qty/minimal_quantity column is present from INT to DECIMAL(17.2)
- When adding a product and if I set to minimal quantity 0.22, it saves in DB 0.22
I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
I cleaned the cache
The problem is:
In Admin when saving product with decimal quantity it saves but after refresh is displays INT (however in DB it is decimal)
In Font it shows INT (if in DB it is 0.22 for minimal quantity in front office it is 0)
I did those modification successful on Prestashop 1.6.X But cant make it done in PRESTASHOP 1.7. Maybe someone who knows PS1.7 better knows where else I should look?
By the way, I checked all files in SRC folder...
php prestashop prestashop-1.7
add a comment |
up vote
0
down vote
favorite
I made the following:
In DATABASE I changed everywhere where quantities/qty/minimal_quantity column is present from INT to DECIMAL(17.2)
- When adding a product and if I set to minimal quantity 0.22, it saves in DB 0.22
I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
I cleaned the cache
The problem is:
In Admin when saving product with decimal quantity it saves but after refresh is displays INT (however in DB it is decimal)
In Font it shows INT (if in DB it is 0.22 for minimal quantity in front office it is 0)
I did those modification successful on Prestashop 1.6.X But cant make it done in PRESTASHOP 1.7. Maybe someone who knows PS1.7 better knows where else I should look?
By the way, I checked all files in SRC folder...
php prestashop prestashop-1.7
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I made the following:
In DATABASE I changed everywhere where quantities/qty/minimal_quantity column is present from INT to DECIMAL(17.2)
- When adding a product and if I set to minimal quantity 0.22, it saves in DB 0.22
I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
I cleaned the cache
The problem is:
In Admin when saving product with decimal quantity it saves but after refresh is displays INT (however in DB it is decimal)
In Font it shows INT (if in DB it is 0.22 for minimal quantity in front office it is 0)
I did those modification successful on Prestashop 1.6.X But cant make it done in PRESTASHOP 1.7. Maybe someone who knows PS1.7 better knows where else I should look?
By the way, I checked all files in SRC folder...
php prestashop prestashop-1.7
I made the following:
In DATABASE I changed everywhere where quantities/qty/minimal_quantity column is present from INT to DECIMAL(17.2)
- When adding a product and if I set to minimal quantity 0.22, it saves in DB 0.22
I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
I cleaned the cache
The problem is:
In Admin when saving product with decimal quantity it saves but after refresh is displays INT (however in DB it is decimal)
In Font it shows INT (if in DB it is 0.22 for minimal quantity in front office it is 0)
I did those modification successful on Prestashop 1.6.X But cant make it done in PRESTASHOP 1.7. Maybe someone who knows PS1.7 better knows where else I should look?
By the way, I checked all files in SRC folder...
php prestashop prestashop-1.7
php prestashop prestashop-1.7
asked Nov 5 at 16:59
AndrewS
64921226
64921226
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
It's typed in Prestashop's core, you won't be able to do that in the DB directly, a solution to your need might be to overwrite on Prestashop's end the function (override/class/Product.php and override/class/stock folder) or just consider your float as an int and consider it a multiple of 100.
Apparently he modified all classes definition:I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.
– idnovate
Nov 8 at 23:41
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It's typed in Prestashop's core, you won't be able to do that in the DB directly, a solution to your need might be to overwrite on Prestashop's end the function (override/class/Product.php and override/class/stock folder) or just consider your float as an int and consider it a multiple of 100.
Apparently he modified all classes definition:I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.
– idnovate
Nov 8 at 23:41
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
add a comment |
up vote
0
down vote
It's typed in Prestashop's core, you won't be able to do that in the DB directly, a solution to your need might be to overwrite on Prestashop's end the function (override/class/Product.php and override/class/stock folder) or just consider your float as an int and consider it a multiple of 100.
Apparently he modified all classes definition:I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.
– idnovate
Nov 8 at 23:41
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
add a comment |
up vote
0
down vote
up vote
0
down vote
It's typed in Prestashop's core, you won't be able to do that in the DB directly, a solution to your need might be to overwrite on Prestashop's end the function (override/class/Product.php and override/class/stock folder) or just consider your float as an int and consider it a multiple of 100.
It's typed in Prestashop's core, you won't be able to do that in the DB directly, a solution to your need might be to overwrite on Prestashop's end the function (override/class/Product.php and override/class/stock folder) or just consider your float as an int and consider it a multiple of 100.
answered Nov 5 at 18:07
Matt Loye
9752811
9752811
Apparently he modified all classes definition:I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.
– idnovate
Nov 8 at 23:41
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
add a comment |
Apparently he modified all classes definition:I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.
– idnovate
Nov 8 at 23:41
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
Apparently he modified all classes definition:
I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.– idnovate
Nov 8 at 23:41
Apparently he modified all classes definition:
I changes In classes/controllers everywhere where quantities/qty/minimal_quantity is present from INT to FLOAT
.– idnovate
Nov 8 at 23:41
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
yes I did all work in classes and controllers. I now look in theme JS for PS1.6 and 1.7. In ps1.7 they made one single JS file, and there is the problem... I think it will take some time until somebody will figure it out... Because the JS code is different. Comparinf Product.j for example and the theme.js it is totally different code
– AndrewS
2 days ago
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53158898%2fprestashop-1-7-change-quantities-from-int-to-float%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password