- Posts: 298
- Thank you received: 7
Email Addreess in body of Payment Notification
7 years 8 months ago #302720
by a2zcs
Email Addreess in body of Payment Notification was created by a2zcs
-- url of the page with the problem -- :
aquacorals.com
-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox 63.0.3
How would I go about putting the customer's email address into the body of the Payment Notification email.
-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox 63.0.3
How would I go about putting the customer's email address into the body of the Payment Notification email.
Please Log in or Create an account to join the conversation.
7 years 8 months ago - 7 years 8 months ago #302729
by Philip
Replied by Philip on topic Email Addreess in body of Payment Notification
Hello,
This code able you to get the Email :
$config->get('payment_notification_email')
You just have to add it in the PRELOAD VERSION part, put it in the $texts array (around line 76) :
$texts = array(
'BILLING_ADDRESS' => JText::_('HIKASHOP_BILLING_ADDRESS'),
...
'CUSTOMER_EMAIL'=>$config->get('payment_notification_email'),
...
}
This will allow you to recover it in the HTML VERSION part :
{TXT:CUSTOMER_EMAIL}
Hope this will help you.
Regards
This code able you to get the Email :
$config->get('payment_notification_email')
You just have to add it in the PRELOAD VERSION part, put it in the $texts array (around line 76) :
$texts = array(
'BILLING_ADDRESS' => JText::_('HIKASHOP_BILLING_ADDRESS'),
...
'CUSTOMER_EMAIL'=>$config->get('payment_notification_email'),
...
}
This will allow you to recover it in the HTML VERSION part :
{TXT:CUSTOMER_EMAIL}
Hope this will help you.
Regards
Last edit: 7 years 8 months ago by Philip.
Please Log in or Create an account to join the conversation.
7 years 8 months ago #302846
by a2zcs
Replied by a2zcs on topic Email Addreess in body of Payment Notification
Hi Philip,
I tried this, but all I get is the text "CUSTOMER_EMAIL" and not the actual email address
I tried this, but all I get is the text "CUSTOMER_EMAIL" and not the actual email address
Please Log in or Create an account to join the conversation.
7 years 8 months ago #302861
by nicolas
Replied by nicolas on topic Email Addreess in body of Payment Notification
Hi,
You don't need to change the preload of the email.
You can just use the tag {VAR:user.user_email} in the HTML of the email and it should work.
You don't need to change the preload of the email.
You can just use the tag {VAR:user.user_email} in the HTML of the email and it should work.
Please Log in or Create an account to join the conversation.
Time to create page: 0.192 seconds