jwinkel Posted June 18, 2023 Report Share Posted June 18, 2023 Weiss jemand, wie man in der Bestellbestätigungs-Email an Variablen herankommt, die nicht Bestandteil des Standards sind? Quote Link to comment Share on other sites More sharing options...
xt:Commerce Posted June 18, 2023 Report Share Posted June 18, 2023 über class.orders.php:_sendOrderMail_bottom in der _sendOrderMail in der class.orders.php Quote Link to comment Share on other sites More sharing options...
NilsK Posted June 19, 2023 Report Share Posted June 19, 2023 Moin, mich würde hier interessieren, wie man bitte die DSGVO-Einwilligung für den Versand (aus der Backend-Bestellung) in die Mail-Bestätigung bekommt, sodaß man nicht jedes mal im BE nachschauen muß, ob die Einwilligung vorliegt. Wie lautet hierzu die Variable, die dann ins Mail-Template kommt? Herzlichen Dank im Voraus. Herzliche Grüße Nils Quote Link to comment Share on other sites More sharing options...
jwinkel Posted June 20, 2023 Author Report Share Posted June 20, 2023 Die Variable ist nicht standardmäßig erreichbar. Du musst ein Plugin bauen, dass über den o.g. hook (ich habe allerdings class.orders.php:_sendOrderMail_top genommen) eingebunden wird. Für den hook ist es dann ein Zweizeiler: $rs = $db->Execute("SELECT dsgvo_shipping_optin FROM ".TABLE_ORDERS." WHERE orders_id = ".$this->order_data['orders_id']); $this->order_data['dsgvo_shipping_optin']=$rs->fields['dsgvo_shipping_optin']; Mit dem Plugin steht dann die Variable $order_data.dsgvo_shipping_optin im Email-Template zur Verfügung, kann 0 oder 1 sein. Quote Link to comment Share on other sites More sharing options...
Sven Bauer Posted June 21, 2023 Report Share Posted June 21, 2023 https://addons.xt-commerce.com/de/plugins/e-mail-extras.html Quote Link to comment Share on other sites More sharing options...
NilsK Posted July 3, 2023 Report Share Posted July 3, 2023 Hallo zusammen, merci - muß ich mal schauen, wann und ob ich das so hinbekomme. Tausend Dank. Ich hatte eigentlich gedacht, es sei mal xtc-einfach mit Smarty + Textausgabe... uff. Wäre doch etwas, für ein nächstes Update (wollte dafür jetzt nicht ein Plugin kaufen, muß ja praktisch eh in den Shop und muß den Arbeitsschritt vorerst vorziehen). Dankende Grüße Nils Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.