1

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

2
  • Rin, drop me an email peter@peteralewis.com and I'll send you a beta version of a Stock Alert module I'm working on. Jul 25, 2013 at 8:06
  • Hi,thanks for the offer. My client has currently placed this on the back burner, so I'll just add in a 'Out of stock' comment for the time being.
    – Nekorin
    Jul 29, 2013 at 13:17

1 Answer 1

1

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.

2
  • 1
    Surely the store_inventory_datatable (for modifying within the Store module listing) and entry_submission_absolute_end hooks (for modifying via normal entry)? Jul 23, 2013 at 8:29
  • Yea that sounds like what I would do. Jul 25, 2013 at 2:26

Your Answer

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

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