Skip to main content

different addresses from Order creation notification

More
10 years 3 days ago #251351 by verzevoul
-- 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 or Create an account to join the conversation.

More
10 years 2 days ago #251365 by nicolas
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->from_mail = 'XXX@XXX.com';
The following user(s) said Thank You: verzevoul

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

More
10 years 2 days ago #251410 by verzevoul
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 or Create an account to join the conversation.

More
10 years 1 day ago #251420 by nicolas
Hi,

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

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

Time to create page: 0.172 seconds
Powered by Kunena Forum