News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

add shopper group name to the email subject

Started by 6.522, January 25, 2017, 21:47:53 PM

Previous topic - Next topic

6.522

Hi, I need to add shopper group name to the subject of notification message that is sent via email to the vendor after creating an order.

I've located the the following line in view.html.php (components\com_virtuemart\views\invoice) which i belive is responsible for generating the content of the subject

$this->subject = JText::sprintf('COM_VIRTUEMART_MAIL_SUBJ_VENDOR_'.$orderDetails['details']['BT']->order_status, $this->shopperName, strip_tags($currency->priceDisplay($orderDetails['details']['BT']->order_total, $currency)), $orderDetails['details']['BT']->order_number);

I've tried some editing ($this->shopper_group_name, $group->shopper_group_name etc..) but with no luck ;) please help :)

VirtueMart 2.6.22
Joomla! 2.5.28