cancel
Showing results for 
Search instead for 
Did you mean: 

Product Stock Alerts Not Sending

Product Stock Alerts Not Sending

I am trying to set up this feature but it's not working.

I tried following:

  1. in magento admin set Yes to "Allow Alert When Product Comes Back in Stock"
  2. Set product to be 'Out of stock'
  3. Click on the link "Sign up to be notified when this product is back in stock." when on product page.
  4. put product back in stock
  5. run cron

in cron_schedule there is no catalog_product_alert cron process!!

Screen Shot 2016-08-01 at 13.47.39.png

 

product_alert_stock table

Screen Shot 2016-08-01 at 13.48.22.png

 

I know that I am missing something, can anyone help?

Thanks in advance!

3 REPLIES

Re: Product Stock Alerts Not Sending

Same issue Smiley Sad


chombe wrote:

I am trying to set up this feature but it's not working.

I tried following:

  1. in magento admin set Yes to "Allow Alert When Product Comes Back in Stock"
  2. Set product to be 'Out of stock'
  3. Click on the link "Sign up to be notified when this product is back in stock." when on product page.
  4. put product back in stock
  5. run cron

in cron_schedule there is no catalog_product_alert cron process!!

Screen Shot 2016-08-01 at 13.47.39.png

 

product_alert_stock table

Screen Shot 2016-08-01 at 13.48.22.png

 

I know that I am missing something, can anyone help?

Thanks in advance!


 

Certified Magento Developer

Re: Product Stock Alerts Not Sending

Hi All, I'm facing the same issue. Any help will be highly appreciated.
Thank you.

Re: Product Stock Alerts Not Sending

Notification alerts are available only for logged-in customer

To enable out of stock notification you have to change the following configuration

1)

Store-->Configuration-->Catalog-->Catalog

Allow Alert When Product Comes Back in Stock to Yes

2)

Store-->Configuration-->Catalog-->Inventory

Display Out of Stock Products to Yes

 

Save the configuration. Once you save the configuration you should get a notification like below. 

Screen Shot 2017-08-19 at 8.11.55 PM.png

Run re-index if required by executing below command

php bin/magento  index:reindex

3)

Then in core_config_data table i have changed the configuration

crontab/default/jobs/catalog_product_alert/schedule/cron_expr to * * * * * 

 

4) Store-->Configuration-->Catalog-->Catalog-->Product Alerts Run Settings

 

Set a time close to your time like if in your location 10 AM then Set 10:02 AM

Screen Shot 2017-08-20 at 10.54.01 AM.png

 

 

5) Then you need to setup Magento cron in the operating system crontab.

To setup cron you have to do following steps

http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html

 or

Without setting the cron you can run the cron

Execute below in the root folder 

php bin/magento cron:run

 

Then i have the output 

 

 Screen Shot 2017-08-20 at 10.56.41 AM.pngScreen Shot 2017-08-20 at 10.56.52 AM.png

 

Suman Kar(suman.jis@gmail.com) Magento Certified Developer Plus Skype: sumanphptech If this response was helpful to you, consider giving kudos to this post