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

#   Username &amp; Password in Order notification email

##

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 6 months ago [\#150020](#150020) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#150020 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")* was created by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")*

Hi!

I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well.
Tried to use the "User account" email's php lines, but do not shows data.

Any help would be appriciated!
Thanks,
PePe

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

12 years 6 months ago [\#150023](#150023) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#150023 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

You can add such code:
&lt;?php echo $data-&gt;cart-&gt;customer-&gt;username; ?&gt;
&lt;?php echo $data-&gt;cart-&gt;customer-&gt;password; ?&gt;

in the emails that you can edit via the menu System&gt;Emails.

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 6 months ago [\#150094](#150094) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#150094 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

Seems OK, but password is shown - I think - encoded.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2Njk5NS11c2VybmFtZS1wYXNzd29yZC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 6 months ago [\#150125](#150125) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#150125 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

Hi,

Yes the passwords are encoded, it is the Joomla stuff.

Regards,

---

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

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 6 months ago [\#153468](#153468) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#153468 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

OK,clear.

What about with vendors in Hikamarket?
Do we able to add the vendor's username in market.order_status_notification email ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2Njk5NS11c2VybmFtZS1wYXNzd29yZC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 6 months ago -  12 years 6 months ago [\#153474](#153474) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#153474 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

Hi,

In HikaMarket 1.4.0 it will be easier to do that.
[ www.hikashop.com/support/documentation/1...arket-changelog.html](http://www.hikashop.com/support/documentation/147-hikamarket-changelog.html)

> The email "vendor order status notification" now give you the vendor data in the template part.

So you will be able to use " {VAR:vendor.vendor_name} " in the email to display the vendor name.

Regards,

---

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

Last edit: 12 years 6 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: fix {Var:...}

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 6 months ago [\#153522](#153522) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#153522 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

It's gonna be great.

Till release, is there a way to translate it, maybe via email's php lines?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2Njk5NS11c2VybmFtZS1wYXNzd29yZC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 6 months ago [\#153589](#153589) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#153589 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

Hi,

In the HikaMarket "order_status_notification preload", you have to add the "vendor" in the vars. 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, 'vendor' =&gt; $data-&gt;vendor );

So you will be able to use the VAR in the template part : {VAR:vendor.vendor_name}

Regards,

---

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

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 3 months ago [\#163643](#163643) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#163643 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

> Jerome wrote: Hi,
>
> In the HikaMarket "order\_status\_notification preload", you have to add the "vendor" in the vars.
>
> 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, 'vendor' =&gt; $data-&gt;vendor );
>
>
>
> So you will be able to use the VAR in the template part : {VAR:vendor.vendor\_name}
>
> Regards,

As I see from database, just vendor's name can be shown in that format, but I need vendor's **username**. Is there any way to do that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2Njk5NS11c2VybmFtZS1wYXNzd29yZC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#163647](#163647) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#163647 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

Hi,

The vendor does not have a username. The users have.
If you want to display the username of the administrator of the vendor, you will have to load the admin. Code:

$userClass = hikamarket::get('shop.class.user'); $admin = $userClass-&gt;get( $vendor-&gt;vendor_admin_id );

Regards,

---

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

The following user(s) said Thank You: [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 3 months ago [\#164294](#164294) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#164294 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

> Jerome wrote: Hi,
>
> The vendor does not have a username. The users have.
> If you want to display the username of the administrator of the vendor, you will have to load the admin.
>
> Code:
>
> $userClass = hikamarket::get('shop.class.user'); $admin = $userClass-&gt;get( $vendor-&gt;vendor_admin_id );
>
>
>
>
> Regards,

Thanks, with this I've loaded the admin. OK.
But how to display the vendor admin's username with your code exactly, as my tries were unfortunately not successfull...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2Njk5NS11c2VybmFtZS1wYXNzd29yZC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#164297](#164297) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#164297 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

Hi,

You have to add the $admin in the variables in the preload (like the vendor, order, shipping_address...)
Then in the email you can display an element of the object, using : {admin.username}

Regards,

---

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

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 3 months ago [\#164358](#164358) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Username &amp; Password in Order notification email](/forum/4-how-to/866995-username-password-in-order-notification-email#164358 "Hi!  I wanna add the user's username and password to the Order notification email. Also it's not a problem if it's shown to the vendor as well. Tried to use the &quot;User account&quot; email's php lines, but do not shows data.  Any help would be appriciated! Thanks, PePe")*

> Jerome wrote: Hi,
>
> You have to add the $admin in the variables in the preload (like the vendor, order, shipping\_address...)
> Then in the email you can display an element of the object, using : {admin.username}
>
> Regards,

OK, I finally found the problem. The correct use is:
Code:

$userClass = hikamarket::get('shop.class.user'); $admin = $userClass-&gt;get($data-&gt;vendor-&gt;vendor_admin_id);

then in vars add this plus: Code:

$vars = array( 'admin' =&gt; $admin );

Finally you can call the vendor's admin username in HTML part by this: Code:

{VAR:admin.username}

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2Njk5NS11c2VybmFtZS1wYXNzd29yZC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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?

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

Time to create page: 0.374 seconds

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

[](#top)
