Vendor Order Status Notification Email

  • Posts: 10
  • Thank you received: 0
9 years 10 months ago #160265

How can I include the user email in the HikaMarket email created by order_status_notification.preload.modified.php and order_status_notification.html.modified.php (in the media/com_hikamarket/mail folder). Something like the example below. I've listed the variables with <?php echo nl2br(print_r($data,true)); ?> and see that user_email is available, but am stuck. Thanks!

Billing Information
Company Name
Customer Name
123 Elm St
Suite 700
Grapevine, Alaska 99999

Telephone: (888) 999-9999
Email: This email address is being protected from spambots. You need JavaScript enabled to view it. <--this is where I'd like the variable to display


My HTML code looks like this:
<td style="font-size: 14px; padding: 11px 18px 8px 0px; background-color: rgb(255, 255, 255); width: 50%; vertical-align: top; line-height: 18px; font-family: Arial, sans-serif"> <p style="margin: 2px 0 9px 0; font-size: 13px; line-height: 18px; font-family: Arial, sans-serif"><span style="color: rgb(30, 7, 88); font-weight:bold;">Billing Information</span><br/>{VAR:BILLING_ADDRESS}<br /><?php echo $user_email; ?></p></td>

I also tried adding a var in the preload file: $vars = $user_email;

And then in the HTML used {VAR:CUSTOMEREMAIL}.

All methods just display nothing. Sure I'm missing something obvious, but it's not obvious to me... Thanks.

Last edit: 9 years 10 months ago by bearingsnorth. Reason: Updated description

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
9 years 10 months ago #160307

Hi,

The order_status_notification email in HikaMarket is a copy of the HikaShop order_status_notification email with just little modification in order to include new variables for the vendors.
If you want to access to the user, you can do it using the customer in the variables

$vars = array(
	'LIVE_SITE' => HIKASHOP_LIVE,
	'URL' => $order_url,
	'ORDER_PRODUCT_CODE' => (bool)$shopConfig->get('show_product_code', false),
	'order' => $data->cart,
	'billing_address' => @$data->cart->billing_address,
	'shipping_address' => @$data->cart->shipping_address,
	'customer' => $data->customer, // the new line to add
	'vendor' => $data->vendor
);
So you will be able to access to the customer content using something like:
{VAR:customer.name}
{VAR:customer.email}

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.057 seconds
Powered by Kunena Forum