How Do I Set The Default Out Of Stock Actions For A New Product?

When adding a new product via (Admin > Products > Create) the default Out Of Stock Actions is set to None.

How do I make the default "Sign Up For Notification"?

I need this so there is one less thing to do (i.e. forget to do...) when adding new products.

2016-09-07_15h37_04.png

When adding a new product via (Admin > Products > Create) the default Out Of Stock Actions is set to None.

How do I make the default "Sign Up For Notification"?

I need this so there is one less thing to do (i.e. forget to do...) when adding new products.

Attached Thumbnails
  • post-9175-0-61913200-1473220059_thumb.pn

Hi ,

Go to /design/backend/templates/views/products/update.tpl

replace

{__("none")}
{__("buy_in_advance")}
{__("sign_up_for_notification")} 

With

{__("sign_up_for_notification")}
{__("buy_in_advance")}
{__("none")}

ALTER TABLE `cscart_products` CHANGE `out_of_stock_actions` `out_of_stock_actions` CHAR( 1 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'S';

I applied the changes offered by Vivek Gupta and it has worked (as always remember to clear the cache) without the need to update the database.

Did some tests and the email is sent when an item goes back in stock.

So is the change to the database only applicable when products are import by CSV?

I applied the changes offered by Vivek Gupta and it has worked (as always remember to clear the cache) without the need to update the database.

Did some tests and the email is sent when an item goes back in stock.

So is the change to the database only applicable when products are import by CSV?

Actually the Out of stock actions field exists in the list of imported parameters. If you do not use it, the default value will be used. In this case solution from post #3 is required

Note: to update all current products please use the following query:

UPDATE `cscart_products` SET `out_of_stock_actions` = 'S';

Thank you eComLabs, now I can see exactly how it all works together.

For others who don't want to go into the database to update all the products then this will do the same thing

Admin > Products > Select products > Edit selected > Unselect all > tick Out of stock actions > Apply values to all the selected products.... etc