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

#   different addresses from Order creation notification

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 1 month ago [\#251351](#251351) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[different addresses from Order creation notification](/forum/35-orders-management/886704-different-addresses-from-order-creation-notification#251351 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4  Hello,  i use two registration forms (fabrik for retail customers and hikashop for wholesale customers), when a user makes an order they receive the &quot;Order creation notification&quot; email for their order from the same email address  I was wondering if it is possible, when the retail customers make an order to receive the &quot;Order creation notification&quot; email from address and the wholesale customers to receive the same &quot;Order creation notification&quot; from different address  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4

Hello,

i use two registration forms (fabrik for retail customers and hikashop for wholesale customers), when a user makes an order they receive the "Order creation notification" email for their order from the same email address "wholesale@something.com".

I was wondering if it is possible, when the retail customers make an order to receive the "Order creation notification" email from "retail@something.com" address and the wholesale customers to receive the same "Order creation notification" from different address "wholesale@something.com".

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjcwNC1kaWZmZXJlbnQtYWRkcmVzc2VzLWZyb20tb3JkZXItY3JlYXRpb24tbm90aWZpY2F0aW9uP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 1 month ago [\#251365](#251365) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[different addresses from Order creation notification](/forum/35-orders-management/886704-different-addresses-from-order-creation-notification#251365 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4  Hello,  i use two registration forms (fabrik for retail customers and hikashop for wholesale customers), when a user makes an order they receive the &quot;Order creation notification&quot; email for their order from the same email address  I was wondering if it is possible, when the retail customers make an order to receive the &quot;Order creation notification&quot; email from address and the wholesale customers to receive the same &quot;Order creation notification&quot; from different address  Thank you")*

Hi,

The question is how do you know that a customer is a retailer or a wholesaler ?
Do you have a custom user field where that is set ? Or maybe the user group ?
It's only a matter of editing the email, and adding a check on that and then changing the sender email of the email with such code:
$mail-&gt;from_mail = 'XXX@XXX.com';

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

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 1 month ago [\#251410](#251410) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[different addresses from Order creation notification](/forum/35-orders-management/886704-different-addresses-from-order-creation-notification#251410 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4  Hello,  i use two registration forms (fabrik for retail customers and hikashop for wholesale customers), when a user makes an order they receive the &quot;Order creation notification&quot; email for their order from the same email address  I was wondering if it is possible, when the retail customers make an order to receive the &quot;Order creation notification&quot; email from address and the wholesale customers to receive the same &quot;Order creation notification&quot; from different address  Thank you")*

Hi nicolas,

i have different user groups. When you say to add a check i m not really sure how to do that!
Could you help me with that? I will send you joomla admin if you could check.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjcwNC1kaWZmZXJlbnQtYWRkcmVzc2VzLWZyb20tb3JkZXItY3JlYXRpb24tbm90aWZpY2F0aW9uP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 1 month ago [\#251420](#251420) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[different addresses from Order creation notification](/forum/35-orders-management/886704-different-addresses-from-order-creation-notification#251420 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.4  Hello,  i use two registration forms (fabrik for retail customers and hikashop for wholesale customers), when a user makes an order they receive the &quot;Order creation notification&quot; email for their order from the same email address  I was wondering if it is possible, when the retail customers make an order to receive the &quot;Order creation notification&quot; email from address and the wholesale customers to receive the same &quot;Order creation notification&quot; from different address  Thank you")*

Hi,

You can get the user id in $data-&gt;customer-&gt;id
And you can get the groups of a user like that:
[ forum.joomla.org/viewtopic.php?t=826562](http://forum.joomla.org/viewtopic.php?t=826562)
Then, it is basic PHP to check the user groups once you have them.

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

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