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

#   email Template

##

- **[kenny\_robb](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile")**
- [![kenny&#95;robb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile") Topic Author
- [ Offline](/forum/user/60337-kenny-robb)

Less More

- Posts: 15
- Thank you received: 1
-
-

5 years 11 months ago [\#326670](#326670) by [kenny\_robb](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile")  *[email Template](/forum/19-hikamarket/901367-email-template#326670 "-- HikaShop version -- : 4.4.0 -- HikaMarket version -- : 3.1.1 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3  Hi there I would like to customise the order emails that go out to the customer to make them more Vendor focused rather than marketplace focused. Is this possible. Specifically the lines  Thank you for your order at https:// Would love to put the vendors name in there  Similarly in the footer of the mail Once again, thank you for your order at https:// We hope to see you again soon. Best Regards xxxxxxxx  Again I would love to put the vendors name in there.  Thanks Kenny")* was created by *[kenny\_robb](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile")*

-- HikaShop version -- : 4.4.0
-- HikaMarket version -- : 3.1.1
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.3

Hi there I would like to customise the order emails that go out to the customer to make them more Vendor focused rather than marketplace focused.
Is this possible.
Specifically the lines

Thank you for your order at https://
Would love to put the vendors name in there

Similarly in the footer of the mail
Once again, thank you for your order at https://
We hope to see you again soon.
Best Regards
xxxxxxxx

Again I would love to put the vendors name in there.

Thanks
Kenny

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

5 years 11 months ago [\#326707](#326707) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[email Template](/forum/19-hikamarket/901367-email-template#326707 "-- HikaShop version -- : 4.4.0 -- HikaMarket version -- : 3.1.1 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3  Hi there I would like to customise the order emails that go out to the customer to make them more Vendor focused rather than marketplace focused. Is this possible. Specifically the lines  Thank you for your order at https:// Would love to put the vendors name in there  Similarly in the footer of the mail Once again, thank you for your order at https:// We hope to see you again soon. Best Regards xxxxxxxx  Again I would love to put the vendors name in there.  Thanks Kenny")*

Hello,

To be able to display the vendor name in the customer email, it requires that you have just one vendor for the order.
If you have two vendors (or potentially your "main vendor'), the information cannot be retrieved by an algorithm.
When everything is in the right configuration, we can imagine a little PHP code to paste in the email in order to populate a variable with the vendor name, variable which could be used in the "email templating" system.
Regarding the subject, that requires a similar modification but you would need to re-define the subject of the email "code" itself.

Regards,

---

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

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

- **[kenny\_robb](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile")**
- [![kenny&#95;robb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile") Topic Author
- [ Offline](/forum/user/60337-kenny-robb)

Less More

- Posts: 15
- Thank you received: 1
-
-

5 years 11 months ago [\#327012](#327012) by [kenny\_robb](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile")  Replied by *[kenny\_robb](/forum/user/60337-kenny-robb "View kenny&#95;robb's Profile")* on topic *[email Template](/forum/19-hikamarket/901367-email-template#327012 "-- HikaShop version -- : 4.4.0 -- HikaMarket version -- : 3.1.1 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3  Hi there I would like to customise the order emails that go out to the customer to make them more Vendor focused rather than marketplace focused. Is this possible. Specifically the lines  Thank you for your order at https:// Would love to put the vendors name in there  Similarly in the footer of the mail Once again, thank you for your order at https:// We hope to see you again soon. Best Regards xxxxxxxx  Again I would love to put the vendors name in there.  Thanks Kenny")*

That sounds great.
I have set up one vendor per order and have no plans to change that.
I have also upgraded to the business edition so I have the email customisation system.

Do you happen to have any sample code I can use?

Kenny

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

5 years 11 months ago [\#327092](#327092) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[email Template](/forum/19-hikamarket/901367-email-template#327092 "-- HikaShop version -- : 4.4.0 -- HikaMarket version -- : 3.1.1 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3  Hi there I would like to customise the order emails that go out to the customer to make them more Vendor focused rather than marketplace focused. Is this possible. Specifically the lines  Thank you for your order at https:// Would love to put the vendors name in there  Similarly in the footer of the mail Once again, thank you for your order at https:// We hope to see you again soon. Best Regards xxxxxxxx  Again I would love to put the vendors name in there.  Thanks Kenny")*

Hello,

In the email "preload" part you will see a loop on the cart products. Code:

foreach($data-&gt;cart-&gt;products as $item) {

You have access to "all products" (content from the HikaShop product table) in the variable Code:

$productClass-&gt;all_products

The idea is to get the vendor_id from the products (best is to take the first $item and get the content from all_products).
Once you have your vendor id (in "product_vendor_id" field) you can load the object object via Code:

$vendorClass = hikamarket::get('class.vendor'); $vendor = $vendorClass-&gt;get($vendor_id);

And access the various fields such as "vendor_name", etc.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvOTAxMzY3LWVtYWlsLXRlbXBsYXRlP3RtcGw9bWFya2Rvd24=) 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.047 seconds

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