News:

Support the VirtueMart project and become a member

Main Menu

Low stock notification

Started by frex, March 13, 2013, 17:07:48 PM

Previous topic - Next topic

frex

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

jdsilva

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

jdsilva