News:

Looking for documentation? Take a look on our wiki

Main Menu

Howto show name in order mail ?

Started by Ronny Buelund, January 16, 2014, 18:34:44 PM

Previous topic - Next topic

Ronny Buelund

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 ?

guardiano78

Hello,
I would like to know if you have found the solution to this problem.

Thank you

GJC Web Design

Quoteshow the field "name" eg the full name of the customer

??  this is the constructed full  name...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

guardiano78

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);

GJC Web Design

displayed name is Joomla user field in #__users
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation