VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: 6.522 on January 25, 2017, 21:47:53 PM

Title: add shopper group name to the email subject
Post by: 6.522 on January 25, 2017, 21:47:53 PM
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
Title: Re: add shopper group name to the email subject
Post by: 6.522 on January 31, 2017, 13:14:45 PM
anyone? :)