- Posts: 35
- Thank you received: 1
E-mail address in address template
- simone.ceschi
-
Topic Author
- Offline
Less
More
8 years 8 months ago #288279
by simone.ceschi
E-mail address in address template was created by simone.ceschi
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.1.1
Hi , how can insert email adress of customer in address_template.php ?
i tried to insert :
but in administration when i send order, the system use my administration email.
it's there a way to insert the real email of customer ?
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.1.1
Hi , how can insert email adress of customer in address_template.php ?
Code:
<?php
/**
* @package HikaShop for Joomla!
* @version 3.2.0
* @author hikashop.com
* @copyright (C) 2010-2017 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_post_code} {address_city} {address_state}
{address_country}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>
<?php
$user = JFactory::getUser();
echo echo $user->email; ?>
i tried to insert :
Code:
<?php
$user = JFactory::getUser();
echo echo $user->email; ?>
but in administration when i send order, the system use my administration email.
it's there a way to insert the real email of customer ?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
8 years 8 months ago #288288
by Mohamed Thelji
Replied by Mohamed Thelji on topic E-mail address in address template
Hello,
You'll just have to add the following code base on the "Column name" of your custom field, so if the column name is "email" :
You'll just have to add the following code base on the "Column name" of your custom field, so if the column name is "email" :
Code:
{email}
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds