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!

7 REPLIES 7

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 Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

Re: Product Stock Alerts Not Sending

In my case product_alert_stock table send_cound and status as 1, but i didn't get any email

Re: Product Stock Alerts Not Sending

We are facing same issue. We are not receiving any emails. Anyone has solution for this?

Re: Product Stock Alerts Not Sending

Hi,

I have the same problem:

product_alert_stock table send_count and status as 1, but i didn't get any email

Anyone have any suggestions?

Thanks in advance

Re: Product Stock Alerts Not Sending

you might missed out the product_alert consumerin the env.php. 
  

  'cron_consumers_runner' =>
array (
'cron_run' => true,
'max_messages' => 20000,
'consumers' =>
array (
0 => 'product_action_attribute.update',
1 => 'product_action_attribute.website.update',
2 => 'exportProcessor',
3 => 'codegeneratorProcessor',
4 => 'negotiableQuotePriceUpdate',
5 => 'quoteItemCleaner',
6 => 'inventoryQtyCounter',
7 => 'async.operations.all',
),
'multiple_processes' =>
array (
),
),

 Please add and verify it, let me know if it works