[Skip to main content](#vessel-content)

#   Vendor Order Status Notification Email

##

- **[bearingsnorth](/forum/user/31023-bearingsnorth "View bearingsnorth's Profile")**
- [![bearingsnorth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31023-bearingsnorth "View bearingsnorth's Profile") Topic Author
- [ Offline](/forum/user/31023-bearingsnorth)

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#160265](#160265) by [bearingsnorth](/forum/user/31023-bearingsnorth "View bearingsnorth's Profile")  *[Vendor Order Status Notification Email](/forum/23-market-how-to/869023-vendor-order-status-notification-email#160265 "How can I include the user email in the HikaMarket email created by order&#95;status&#95;notification.preload.modified.php and order&#95;status&#95;notification.html.modified.php (in the media/com&#95;hikamarket/mail folder). Something like the example below. I've listed the variables with  and see that user&#95;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 is where I'd like the variable to display  My HTML code looks like this:  Billing Information{VAR:BILLING&#95;ADDRESS}  I also tried adding a var in the preload file: $vars = $user&#95;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.")* was created by *[bearingsnorth](/forum/user/31023-bearingsnorth "View bearingsnorth's Profile")*

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 *&lt;?php echo nl2br(print\_r($data,true)); ?&gt;* 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: user@mailservice.com** &lt;--this is where I'd like the variable to display

My HTML code looks like this:
&lt;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"&gt; &lt;p style="margin: 2px 0 9px 0; font-size: 13px; line-height: 18px; font-family: Arial, sans-serif"&gt;&lt;span style="color: rgb(30, 7, 88); font-weight:bold;"&gt;Billing Information&lt;/span&gt;&lt;br/&gt;{VAR:BILLING_ADDRESS}&lt;br /&gt;&lt;?php echo $user_email; ?&gt;&lt;/p&gt;&lt;/td&gt;

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: 12 years 5 months ago by [bearingsnorth](/forum/user/31023-bearingsnorth "View bearingsnorth's Profile"). Reason: Updated description

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY5MDIzLXZlbmRvci1vcmRlci1zdGF0dXMtbm90aWZpY2F0aW9uLWVtYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#160307](#160307) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor Order Status Notification Email](/forum/23-market-how-to/869023-vendor-order-status-notification-email#160307 "How can I include the user email in the HikaMarket email created by order&#95;status&#95;notification.preload.modified.php and order&#95;status&#95;notification.html.modified.php (in the media/com&#95;hikamarket/mail folder). Something like the example below. I've listed the variables with  and see that user&#95;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 is where I'd like the variable to display  My HTML code looks like this:  Billing Information{VAR:BILLING&#95;ADDRESS}  I also tried adding a var in the preload file: $vars = $user&#95;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.")*

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 Code:

$vars = array( 'LIVE_SITE' =&gt; HIKASHOP_LIVE, 'URL' =&gt; $order_url, 'ORDER_PRODUCT_CODE' =&gt; (bool)$shopConfig-&gt;get('show_product_code', false), 'order' =&gt; $data-&gt;cart, 'billing_address' =&gt; @$data-&gt;cart-&gt;billing_address, 'shipping_address' =&gt; @$data-&gt;cart-&gt;shipping_address, 'customer' =&gt; $data-&gt;customer, // the new line to add 'vendor' =&gt; $data-&gt;vendor );

So you will be able to access to the customer content using something like: Code:

{VAR:customer.name} {VAR:customer.email}

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODY5MDIzLXZlbmRvci1vcmRlci1zdGF0dXMtbm90aWZpY2F0aW9uLWVtYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
