Author Topic: Vendor comment in order status change email  (Read 123 times)

stawebnice

  • Jr. Member
  • **
  • Posts: 224
  • What does not kill you, makes you stronger...
    • StaWEBnice - www stránky, seo optimalizace a copywriting
  • Skype Name: peta_ze_sklepa
  • VirtueMart Version: 3.0.19.7
Vendor comment in order status change email
« on: October 04, 2017, 16:08:54 pm »
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

  • Jr. Member
  • **
  • Posts: 212
Re: Vendor comment in order status change email
« Reply #1 on: October 17, 2017, 14:29:01 pm »
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:
Code: [Select]
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:
Code: [Select]
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

  • Jr. Member
  • **
  • Posts: 224
  • What does not kill you, makes you stronger...
    • StaWEBnice - www stránky, seo optimalizace a copywriting
  • Skype Name: peta_ze_sklepa
  • VirtueMart Version: 3.0.19.7
Re: Vendor comment in order status change email
« Reply #2 on: October 17, 2017, 14:34:28 pm »
Thanks, I found it in Spyros's templates for emails and made it similar to yours