Jump to content
azmaer

Allow/Disallow ordering products out of stock

Recommended Posts

Prestashop: 1.7.6.2

My shop had Allow ordering of out-of-stock products set to YES, but now, i wanted to change it to NO so in:

Preferences -> Products -> Product Stock -> Allow ordering of out-of-stock products ------ i've changed it to 'NO' 

and it was working for about 4 minutes and after that it still have option turned to 'NO' but it doesn't work. I've tried with dev/prod mod and it always revert my changes. Had someone issue like this? I was removing caches, overwrite src and classes directories with new ones, yet still it is wrong.

I also did:

UPDATE `ps_product` SET `out_of_stock` = 1;
UPDATE `ps_stock_available` SET `out_of_stock` = 1;

which also was working.... but after few minutes again, everyone can order products that are out of stock. Any idea why it doesn't keep changes (but it keep in BO)?

 

Share this post


Link to post
Share on other sites

check that you do not have duplicate fields names in  configuration table as this can lead to wack results like this.

Share this post


Link to post
Share on other sites

it was pre-order module and not working prestashop option which mislead me (deactivate non prestashop modules)

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More