VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: frex on March 13, 2013, 17:07:48 PM

Title: Low stock notification
Post by: frex on March 13, 2013, 17:07:48 PM
VM2.0.14
Joomla 2.5.8

I'm having problems with the low stock notification email. The email is being sent ok, and received by the vendor. But it doesn't seem to be reading the language file.
The email is coming through with the subject COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_SUBJECT
and the email body COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_BODY
So the vendor has no idea which product the email is referring to.

I have checked the administrator/models/product.php file, and lines 1998 - 2001 are as follows:
$url = JURI::root () . 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $virtuemart_product_id;
$link = '<a href="'. $url.'">'. $vars['product_name'].'</a>';
$vars['subject'] = JText::sprintf('COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_SUBJECT',$vars['product_name']);
$vars['mailbody'] =JText::sprintf('COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_BODY',$link, $vars['product_in_stock']);


I have checked the language file which has the following entries:
COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_BODY="The product %s has a stock of %d."
COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_SUBJECT="The product %s has a low stock"

Can anyone help as to why this isn't working?

Thanks,

Pete
Title: Re: Low stock notification
Post by: jdsilva on October 06, 2015, 20:55:15 PM
120 days later, and no one has any advise? I also have the same issue. I'm on Joomla 3.4.4 + VM 3.0.9
Title: Re: Low stock notification
Post by: jdsilva on October 06, 2015, 21:07:57 PM
If anyone is looking, I just found this: https://www.flexiblewebdesign.com/forum-joomla-virtuemart-template-coolmart-support/2505-low-stock-email-alert-not-working-properly
Going to try it out and see if gets me my desired result.