Author Topic: Automate sending email returned product available  (Read 623 times)


  • Beginner
  • *
  • Posts: 17
Automate sending email returned product available
« 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,

Joomla version 3.8.2
VM 3.2.8
PHP 7.0.32-0ubuntu0.16.04.1

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9653
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Automate sending email returned product available
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
Contact for any VirtueMart or Joomla development & customisation