VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: goldlink on September 25, 2018, 19:51:13 PM

Title: Automate sending email returned product available
Post by: goldlink on September 25, 2018, 19:51:13 PM
Hello guys,

I've been banging my head for days now to look for a solution to automatically send emails to the customer, when a product is back in stock.

I have activated the "Displays 'Notify Me' function instead of 'Add To Cart' button" and I would like it to work automatically when the quantity above 0 returns.

I connected virtuemart to a local management software and then the reintegration of the products are managed automatically, making the manual transmission, through the "send to email" button very inconvenient.

I would like to know if anyone has found a solution.

In your opinion could I put a cronjob on the vps? Does the current notification system, even if manual, take into account the quantity above 0 for sending the email?


Thanks in advance,
goldlink.

Joomla version 3.8.2
VM 3.2.8
PHP 7.0.32-0ubuntu0.16.04.1
Title: Re: Automate sending email returned product available
Post by: GJC Web Design on September 25, 2018, 20:20:45 PM
the function is public so  code needs to be written to use it programatically..

public function notifyList ($virtuemart_product_id, $subject = '', $mailbody = '', $max_number = 0)

and no -- it doesn't check stock