Change Email of sender to customer email

22.10.2015 18:06
#1
kupaladen
Joomshopping forum user no avatar
Name: Denis Fedorov
08.06.2013
Posts: 14
Quote
Change Email of sender to customer email

Hello!
After the last update (to 4.11.0) this solution does not work anymore:

solution is:
components/com_jshopping_models/checkout.php
Change : $mailer->setSender(array($mailfrom, $fromname));
To : $mailer->setSender($order->email);


New checkout.php is seriously changed.
How to change email of sender to customer email now?

Thanks fo reply!


Joomla: 3.4.5
JoomShopping: 4.11.0
Website Url: http://fitnessdesign.ru
 
23.10.2015 07:48
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16518
Quote
Aw: Change Email of sender to customer email

Change
models\ordermail.php

function sendMail
...
after $mailer->setSender....

add
if ($type=='admin'){
$mailer->setSender($recipient);
}

 
23.10.2015 20:50
#3
kupaladen
Joomshopping forum user no avatar
Name: Denis Fedorov
08.06.2013
Posts: 14
Quote
Aw: Change Email of sender to customer email

Did not work...
The "Sender" still is "Shop administrator E-Mail".
See pic:
Aw: Change Email of sender to customer email


Joomla: 3.4.5
JoomShopping: 4.11.0

Letzte Ă„nderung: 23.10.2015 20:53
 
23.10.2015 21:02
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16518
Quote
Aw: Change Email of sender to customer email

Sorry.
Try

if ($type=='admin'){
$mailer->setSender($this->order->email);
}

 
23.10.2015 22:44
#5
kupaladen
Joomshopping forum user no avatar
Name: Denis Fedorov
08.06.2013
Posts: 14
Quote
Aw: Change Email of sender to customer email

It works!
I really appreciate it!
Best wishes!

 
Copyrights MAXXmarketing GmbH. All Rights Reserved