Is there a plugin or method to create a "Notify me when product is available" when a product is out of stock? I will like to let the CMS send an email to users who opt in to the notification whenever the project stock is replenished.
Regards, Rin
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityIs there a plugin or method to create a "Notify me when product is available" when a product is out of stock? I will like to let the CMS send an email to users who opt in to the notification whenever the project stock is replenished.
Regards, Rin
There is nothing in Store directly that would allow you to send an email based upon the stock changing. I would recommend you use a conditional in your template similar to
{if total_stock == 0}
// Signup form to collect
// users email address
// goes here
{/if}
Depending on which approach you use for collecting the users email address you can send an email to them letting them know that the item is back in stock. Some things you will need to think about is unsubscribing users from the list after the email is sent or do you want to leave them in the list unless they unsubscribe.
To automate the process of sending out an email you could write an extension based upon one of the extension hooks. I would probably say the store_inventory_datatable would fit your needs.