VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Ronny Buelund on January 16, 2014, 18:34:44 PM

Title: Howto show name in order mail ?
Post by: Ronny Buelund on January 16, 2014, 18:34:44 PM
I would like to show the field "name" eg the full name of the customer insted of "first_name" and "last_name" in this code:

         <strong><?php echo JText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME', $this->civility . ' ' . $this->orderDetails['details']['BT']->first_name . ' ' . $this->orderDetails['details']['BT']->last_name); ?></strong><br/>

in the invoice view file: mail_html_header.php

How do i do that ?
Title: Re: Howto show name in order mail ?
Post by: guardiano78 on May 05, 2016, 19:17:58 PM
Hello,
I would like to know if you have found the solution to this problem.

Thank you
Title: Re: Howto show name in order mail ?
Post by: GJC Web Design on May 05, 2016, 20:34:23 PM
Quoteshow the field "name" eg the full name of the customer

??  this is the constructed full  name...
Title: Re: Howto show name in order mail ?
Post by: guardiano78 on May 05, 2016, 20:51:33 PM
I think I understand the problem. In #__virtuemart_order_userinfos, displayed name field is not present.
to solve I added the company field on the registration form and i change the sourcecode:

echo vmText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME', $this->civility . ' ' . $this->orderDetails['details']['BT']->company);
Title: Re: Howto show name in order mail ?
Post by: GJC Web Design on May 06, 2016, 00:00:28 AM
displayed name is Joomla user field in #__users
Title: Re: Howto show name in order mail ?
Post by: guardiano78 on May 06, 2016, 09:44:06 AM
thank you