- Posts: 13
- Thank you received: 0
How to add Register custom fields forms to display
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.13
-- Browser(s) name and version -- : Chrome
How to add Register custom fields forms to display on User account administrator notification email
so we can tell the difference between a wholesaler register and a RRP user.
i have tried your forums but cannot seem to get the right code for it to happen.
i want it to display: I want to become a reseller on the email notification..
with additional information that i have on the custom fields. Your help would be much appreciated.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please provide a screenshot of the settings of your custom field.
Based on its settings the code to use will be different.
Please Log in or Create an account to join the conversation.
Could you please provide an example?
Please Log in or Create an account to join the conversation.
I don't see any screenshot for your custom field setting ; but hopefully, your second screenshot gave enough details.Please provide a screenshot of the settings of your custom field.
Based on its settings the code to use will be different.
Next time, please provide the exact information that we're asking you ; nothing more, nothing less.
To display the address custom field with the column name "business_details", you can use that code :
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Capture Fronted
Capture backend
Capture Notification to the administrator user account
Please Log in or Create an account to join the conversation.
The tags in the email can only be used with you have a corresponding "preload" in your email.
That "preload" will initialize the variables so you can then use them in the "HTML" or "Text" part.
Because the "user_account_admin_notification" do not have any preload, you can't use tags.
Please use instead some PHP
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
I wrote as it as you coment, but it doens´t do not work your code.
I have to add something else?
Please Log in or Create an account to join the conversation.
Try like this instead:
<?php
echo $data->codigopostal;
?>
Please Log in or Create an account to join the conversation.
The code does not work.
<?php
/**
* @package HikaShop for Joomla!
* @version 2.6.0
* @author hikashop.com
* @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
echo $data->codigopostal;
?>
<?php
echo JText::sprintf(
'HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY',
$data->name,
$data->username,
$data->user->codigopostal,
HIKASHOP_LIVE
);
Please Log in or Create an account to join the conversation.
Sorry, try like that:
<?php
echo $data->user_data->codigopostal;
?>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<?php
echo str_replace('<br/>',"\n",JText::sprintf(
'HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY',
$data->name,
$data->username,
$data->user_data->city;
$data->user_data->country;
HIKASHOP_LIVE
));
Thanks!
Please Log in or Create an account to join the conversation.
No, "codigopostal" is a user custom field in the other website.
You have to use your own user custom field (or address custom fields).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.