Hallo zusammen,
EDIT:Konnte das Problem jetzt lokalisieren:
Die Statusänderungsmail ist nur leer bei Statusänderungen von
Aufträgen mit reinen Downloadartikeln und dem Preis von 0,00 EUR. Bei einer gemischten Bestellung von Downloadartikeln und anderen, ist die Statusmail korrekt.
In der Datenbank sehe ich, dass im Falle der Bestellung eines reinen Downloadartikels mit Preis 0,00 die Felder "payment_class" und "language" in der Tabelle "orders" nicht gefüllt sind. Deshalb kommt es zu folgendem Fehler:
Warning: Smarty error: unable to read resource: "xtc5/admin/mail//change_order_mail.html" in D:\xampp\htdocs\bbqtop\includes\classes\Smarty_2.6.26\Smarty.class.php on line 1097
Das hilft mir jetzt aber nicht weiter, da an dieser Stelle nur die Fehlermeldung erzeugt wird:
Wenn ich das so richtig sehe, könnte der Fehler daran liegen, dass die Variable order->info['language'] leer ist, deshalb auch der doppelte // in der Fehlermeldung
In der admin/orders.php Zeile 127:
$html_mail = $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$order->info['language'].'/change_order_mail.html');
$txt_mail = $smarty->fetch(CURRENT_TEMPLATE.'/admin/mail/'.$order->info['language'].'/change_order_mail.txt');
Wie gesagt, das kommt nur vor, wenn ein einziger Artikel als Download bestellt wurde, der 0,00 EUR kostet (setze ich den Preis auf 1,00 ist die Bestätigungsmail in Ordnung).
Linkback: https://www.modified-shop.org/forum/index.php?topic=9988.0