22.10.2015 18:06
|
|
kupaladen
Name: Denis Fedorov
08.06.2013
Posts: 64
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25939
|
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
|
|
kupaladen
Name: Denis Fedorov
08.06.2013
Posts: 64
|
Aw: Change Email of sender to customer email
Did not work...
The "Sender" still is "Shop administrator E-Mail".
See pic:
Joomla: 3.4.5 JoomShopping: 4.11.0
Last change: 23.10.2015 20:53
|
|
23.10.2015 21:02
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25939
|
Aw: Change Email of sender to customer email
Sorry.
Try
if ($type=='admin'){
$mailer->setSender($this->order->email);
}
|
|
23.10.2015 22:44
|
|
kupaladen
Name: Denis Fedorov
08.06.2013
Posts: 64
|
Aw: Change Email of sender to customer email
It works!
I really appreciate it!
Best wishes!
|
|