cktoh Posted November 14, 2013 Share Posted November 14, 2013 Hi , I would like set Default: Allow orders as selected value for all the products in my online shop. I just enable the stock management in prestashop, and found that half of my products is defaulted to "deny order" and another half is defaulted to Default: Allow orders . Is there any way to update the table column to solve this issue? kindly please provide guidance sql guidance update these column. version : PrestaShop™ 1.5.6.0 Link to comment Share on other sites More sharing options...
bellini13 Posted November 14, 2013 Share Posted November 14, 2013 in ps_product table, the column name is out_of_stock. The values can be 0, 1 or 2. 0=deny 1=allow 2=use global default You can use this command to update all products to '2' or '1' or '0' UPDATE `ps_product` SET `out_of_stock` = '2' Link to comment Share on other sites More sharing options...
cktoh Posted November 15, 2013 Author Share Posted November 15, 2013 Hi bellini13, Thanks for you reply, i updated the out_of_stock column already still cannot solve the problem. It still show "Deny Orders".. Is it because of version? Link to comment Share on other sites More sharing options...
bellini13 Posted November 15, 2013 Share Posted November 15, 2013 if you updated the value to 0, then it would say deny, if you updated the value to 2, then it will say whatever your default stock setting is. if you want to allow all of your products to be allowed, then change your global setting Link to comment Share on other sites More sharing options...
HaCos Posted December 23, 2015 Share Posted December 23, 2015 Hello, i have been dealing with this issue for almost a month. Does anyone know if there any functionality somewhere that would trigger a product to switch value for out_of_stock from 2 to 0 ? Link to comment Share on other sites More sharing options...
lumedevikeira Posted May 20, 2016 Share Posted May 20, 2016 Hello, i have been dealing with this issue for almost a month. Does anyone know if there any functionality somewhere that would trigger a product to switch value for out_of_stock from 2 to 0 ? There are two tables, I spent a lot of time with this issue UPDATE `ps_product` SET `out_of_stock` = 2; UPDATE `ps_stock_available` SET `out_of_stock` = 2; 2 Link to comment Share on other sites More sharing options...
Szymik Posted September 19, 2016 Share Posted September 19, 2016 There are two tables, I spent a lot of time with this issue UPDATE `ps_product` SET `out_of_stock` = 2; UPDATE `ps_stock_available` SET `out_of_stock` = 2; Thanks a lot! You saved me a lot of time Link to comment Share on other sites More sharing options...
kaferklaus Posted September 27, 2019 Share Posted September 27, 2019 Hi, I set "out of stock"= "2" (on "ps_stock_available" and "ps_product") but, on "ps_stock_avalable", it automatically turns on "0" when a customer makes an order. How to solve it? Thanks a lot. Link to comment Share on other sites More sharing options...
20bekhar Posted September 28, 2019 Share Posted September 28, 2019 Hi As you can see when I add a discount price, the UI to understand the real price is not well. Is there anyone to help me to change the codes of showing the price like attachment?? please help me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now