I want to set link "Notify me when this product is in stock" for the out of stock child product.

For simple product, When the product is out of stock, we can see this link "Notify me when this product is in stock" on PDP. Please check screenshot below,

enter image description here

So, Want to implement same functionality for the child product of config product. See the screenshot below, enter image description here

Here, XS and Orange color product is "out of stock". We only get know when adding product to cart. So, Can we implement this same as simple product? Like "Notify Me" link should be visible instead of "Add to Cart" before product adding to cart.

Please let me know if you guys have any solution. Thanks in Advance.

2 Answers 2


You need to customize the code as per below.

Once the user selects the swatch/attribute option, based on the selection (selected_configurable_option), provide the "Notify me when this product is in stock" link.

Upon clicking the link, add the data to the product_alert_stock table with the child product ID.

Write a logic to send emails reading this entry from the table.

Refer to Default workflow -




enter image description here You Can Overide swatch-renderer.js in own module.In js create own function and impliment notify functionality.

In this js i have create own function and i was get click attribute product id and ajax through i have send product id my controller and get child product available or not accordding respone i was create notify functionality.

  • Do you have the code for reference? If yes, Can you provide or paste here? Commented Mar 20 at 14:56
  • Please let me know if you have any code reference or flow. Commented Mar 21 at 6:04

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.