News:

Looking for documentation? Take a look on our wiki

Main Menu

Automate sending email returned product available

Started by goldlink, September 25, 2018, 19:51:13 PM

Previous topic - Next topic

goldlink

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation