Notification email when new Waitlist item added

  • Posts: 17
  • Thank you received: 0
9 years 6 months ago #202617

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4
-- Browser(s) name and version -- : Chrome

I have the waitlist feature operating to send a notification when the item is in stock.

But I want to use the feature so we can check stock when the stock level is low, so I have set the stock level to 0 when it is less than 10 and changed the waitlist message so that the customer can request if we have stock.

How can I configure the waitlist so that when a new customer adds a waitlist item an email is sent to the administrator?

I wan to be notified of a new waitlist item by email without having to check the report regularly.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 6 months ago #202623

Hi,

There is no setting to do that for now. So it would require the development of a small custom plugin to send that email when the waitlist item is added.

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
9 years 5 months ago #203022

Thanks Nicolas

I have set up an article to run a php script to send an email which I will add a simple select statement from the waitlist table to determine if the email should be sent.

How do i set up an additional cron job (In addition to the one that is already running which processes the waitlist fulfilled messages) to call the url of the article?
It looks like in the configuration - Cron tab only one cron can be set up.

Last edit: 9 years 5 months ago by Mcconnell.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 5 months ago #203036

Hi,

The cron system we have in HikaShop is for HikaShop only, not other scripts.
If you want to plug yourself to it, you can create a HikaShop plugin and implement the onHikashopCronTrigger function:
www.hikashop.com/support/documentation/6...nHikashopCronTrigger

Otherwise, if you want to configure a cron job to call a specific PHP script on your web server, you need to configure the cron as your hosting company offers.
We have some documentation for the HikaShop cron:
www.hikashop.com/support/documentation/5...ron-task.html#server
So you might want to use a cron job somewhat similar but just changing the URL to point to your script.
The best would be to ask your hosting company.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum