News:

Looking for documentation? Take a look on our wiki

Main Menu

Vendor comment in order status change email

Started by stawebnice, October 04, 2017, 16:08:54 PM

Previous topic - Next topic

stawebnice

Hi,

please, where could I add a description to a vendor comment in order status change email - right now it is placed without a decription here between order status and customer note:
http://imtp.me/dg2702lj3.p

I would like to add a description such as Vendor's message:   and make it red so it would not be overlooked as it may contain payment instructions, shipping tracking etc.



gba

Hi!

Create a language override for COM_VIRTUEMART_COMMENT (or create a new variable, i. e. MY_VENDOR_COMMENTS_DESCRIPTION).

Now look for the layout file that contains this code:
nl2br($this->orderDetails['history'][$nb-1]->comments)
The default VM file containing this code is /components/com_virtuemart/views/invoice/tmpl/mail_html_shopper.php.
Maybe it is overridden by your template - then find the code in your template override.

Right before this code add following:
echo '<span style="color:red;">'.vmText::_('COM_VIRTUEMART_COMMENT').'</span><br />';
If you have created MY_VENDOR_COMMENTS_DESCRIPTION, use it instead of COM_VIRTUEMART_COMMENT.

Now you have your description in red color before the order status comments.

Hope this helps.

Kind regards,
Gerald

stawebnice

Thanks, I found it in Spyros's templates for emails and made it similar to yours