Email Addreess in body of Payment Notification

  • Posts: 247
  • Thank you received: 7
  • Hikamarket Multivendor Hikashop Business
5 years 2 months ago #302720

-- 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.

Please Log in or Create an account to join the conversation.

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
5 years 2 months ago #302729

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

Last edit: 5 years 2 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 247
  • Thank you received: 7
  • Hikamarket Multivendor Hikashop Business
5 years 2 months ago #302846

Hi Philip,
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.

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
5 years 2 months ago #302861

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum