News about E-Commerce from the EXWE Blog
Subscribe to articles about digitalization, software development and e-commerce
  Show all news (72)

E-Commerce Tip: xtCommerce - confirmation email with bank details

Banner Tipps & Tricks

In the current xtCommerce 4.0 there is unfortunately no possibility to specify the bank details including all direct debit data directly in the confirmation email. This makes it easier to use the direct debit system, because you don't always have to log in to the store. If you need more information or help around the topic of e-commerce and online store, we are happy to help you.


File: xtFramework/classes/class.order.php

Function:function _sendOrderMail()


($plugin_code = $xtPlugin->PluginCode('class.orders.php:_sendOrderMail_bottom')) ? eval($plugin_code) : false;


// get data for payment method banktransfer
if($this->order_data['payment_code'] == "xt_banktransfer")
$banktransfer_record = $db->Execute("SELECT orders_data FROM " . TABLE_ORDERS . " WHERE orders_id = '" . (int) $this->order_data['orders_id'] . "'");
$banktransfer_data = unserialize($banktransfer_record->fields['orders_data']);

($plugin_code = $xtPlugin->PluginCode('class.orders.php:_sendOrderMail_bottom')) ? eval($plugin_code) : false;

Then in the email templates (Inahlte -> E-Mail Manager) in template (send_order) add these lines:

{if $banktransfer_owner}
<h2>Direct debit</h2>.
<p>account holder: {$banktransfer_owner}<br/>
Bank name: {$banktransfer_bank_name}<br/>
Bank code: {$banktransfer_blz}<br/>
Account number: {$banktransfer_number}<br/>
Iban: {$banktransfer_iban}<br/>
Bic / Swift: {$banktransfer_bic}<br/></p><br />

If everything goes smoothly, you now have the direct debit details in the confirmation email.

You are interested in e-commerce or run your own business online? Then feel free to check out our other blog articles on e-commerce!

from 29.11.17 um 12:33

Hello, my name is Meike. I take care of the EXWE back office and am responsible for our social media channels. All of our articles are meant to make your life easier and help you make decisions. Nevertheless, it can happen that something remains unclear, so: If you have questions about this article you can easily reach me at +49 231 93149827.

We also have the following interesting posts from our tech blog for you on this topic
Google 4 Analytics - Enhanced E-Commerce Tracking and everything you need to know about GA4

Google Analytics 4 - Our guide for switching to the new version GA4 Meta Description: Learn all about the new version and Enhanced E-Commerce Tracking with GA4.

Conversion optimization: How do I increase the sales of my webshop?

You want to increase the conversion of your online store to generate more sales? We have some tips for online store creation that will surely help you achieve this!

Store Systems Guide: How do I choose the right store system?

Which store system is the best for your business? In our comparison, we examine store systems for aspects such as customization, hosting and more.

Schreibe EXWE auf WhatsApp