0

AlertProcessor - Notification of product back in stock is not received

Preconditions and environment Magento version 2.4.5-P1 PHP8.1

Expected result Alert stock email being sent

Actual result Emails not triggered for Product Alerts.

Steps to Reproduce

  • Enable product alert stock (Configuration > Catalog >Product Alerts > Allow Alert When Product Comes Back in Stock > Yes)
  • Reindex and cache flush
  • Front end
  • Login as customer - Select a Product without stock - Register to a product stock alert
  • Launch consumers

1 Answer 1

0

A solution that worked for me:

Adding the consumer alert_product in the .magento.env.yaml file:

enter image description here

Check before Code:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Communication/etc/communication.xsd">
    <topic name="product_alert" request="Magento\AsynchronousOperations\Api\Data\OperationInterface">
        <handler name="productAlert" type="Magento\ProductAlert\Model\Mailing\Consumer" method="process"/>
    </topic>
</config>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.