30.10.2015 09:10
|
|
mrbernd
Name: Bernd
18.02.2010
Сообщения: 337
|
Change Email of sender to customer email with customer name
how to Change Emailadress of sender to customer email / include name.
it´s easier to reply a mail
Joomla: 2.5.8 JoomShopping: 3.20.2 PHP: 5.3.29 MySQL: 5.x
Последнее изменение: 30.10.2015 09:15
|
|
30.10.2015 09:51
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25853
|
|
|
30.10.2015 10:33
|
|
mrbernd
Name: Bernd
18.02.2010
Сообщения: 337
|
Aw: Change Email of sender to customer email with customer name
i use the shop version 3.20.2
|
|
30.10.2015 11:25
|
|
mrbernd
Name: Bernd
18.02.2010
Сообщения: 337
|
Aw: Change Email of sender to customer email with customer name
i edit this:
//send mail admin
if ($admin_send_order){
$mailer = JFactory::getMailer();
$mailer->setSender(array($mailfrom, $fromname));
Changed:
$mailer->setSender(array($mailfrom, $fromname));
To:
$mailer->setSender($order->email);
it works.
what I need to change as well, so that the customer's name and not his e-mail address is shown as the sender?
thank you so much
|
|
30.10.2015 13:18
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25853
|
Aw: Change Email of sender to customer email with customer name
$mailer->setSender(array($order->email, $order->f_name));
or
$mailer->setSender(array($order->email, $order->f_name.' '.$order->l_name));
Последнее изменение: 30.10.2015 13:19
|
|
30.10.2015 15:40
|
|
mrbernd
Name: Bernd
18.02.2010
Сообщения: 337
|
Aw: Change Email of sender to customer email with customer name
works
thank you very much !
|
|
14.03.2016 16:57
|
|
agrupe
Name: Grupe
30.10.2012
Сообщения: 92
|
Aw: Change Email of sender to customer email with customer name
Can you tell me which file has to be modified in 4.12.2
The checkout.php is now very different from the old version
Thanks,
Andreas
|
|
14.03.2016 17:11
|
|
FrankG.
Name: Frank
30.11.2011
Сообщения: 1600
|
|
|
15.03.2016 12:49
|
|
agrupe
Name: Grupe
30.10.2012
Сообщения: 92
|
Aw: Change Email of sender to customer email with customer name
Hi,
in dem Zip File sind dutzende Dateien. Wenn du schon weisst, wonach ich dort suchen soll, dann bitte ich um die Info.
In der letzten Version wurde das entsprechende File so weit ich sehen kann gar nicht geändert, also muss die Codeänderung bereits in einer vorherigen Version durchgeführt worden sein. Da ich ca 10 Updates nacheinander eingespielt habe, kann ich nicht sagen, wann das passiert ist.
Gruß
Andreas
|
|
15.03.2016 15:47
|
|
FrankG.
Name: Frank
30.11.2011
Сообщения: 1600
|
Aw: Change Email of sender to customer email with customer name
Hallo Andreas,
was hat sich denn an der checkout.php geändert? bzw. was vermisst du denn?
Ich kann da keine Änderung feststellen.
Gruß Frank
|
|
15.03.2016 16:44
|
|
agrupe
Name: Grupe
30.10.2012
Сообщения: 92
|
Aw: Change Email of sender to customer email with customer name
Hi Frank,
wie gesagt, meine checkout.php war recht alt. In der aktuell installierten Joomshopping Version 4.12.2 suche ich (wie hier im Thread oben beschrieben) "SetSender", um an der Stelle den Code zu ändern. Gibt's da aber nicht - habe mir das File gerade noch mal herunter geladen.
Das einzige Code-Schnipsel, das Email betrifft lautet:
function sendOrderEmail($order_id, $manuallysend = 0){
$model = JSFactory::getModel('orderMail', 'jshop');
$model->setData($order_id, $manuallysend);
return $model->send();
Bin ich vielleicht im falschen File (components/com_jshopping/models/checkout.php)?
Danke schon mal für deine Hilfe
Andreas
|
|
15.03.2016 19:39
|
|
FrankG.
Name: Frank
30.11.2011
Сообщения: 1600
|
Aw: Change Email of sender to customer email with customer name
Hallo Andreas,
das würde ich so auch sagen... die checkout.php ist der Punkt nach dem Warenkorb.
Was du suchst, findest du gar nicht im Template.
Das sendOrderEmail findes du in der Datei /components/com_jshopping/models/checkout.php
Ich verwende für so was den aborange Searcher, damit findest du jeden Code https://www.aborange.de/aborange-searcher
Gruß Frank
|
|