Email Addreess in body of Payment Notification

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
5 years 10 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: 4747
  • Thank you received: 644
  • MODERATOR
5 years 10 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 10 months ago by Philip.

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
5 years 10 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: 82868
  • Thank you received: 13376
  • MODERATOR
5 years 10 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.060 seconds
Powered by Kunena Forum