xtCommerce 4.0: Enter direct debit data in confirmation email

by Meike Müller

In the current xtCommerce 4.0 there is unfortunately no option to enter the bank details including all direct debit data directly in the confirmation email. This makes it easier to use the direct debit procedure as you do not always have to log into the store. If you need further information or help on the subject of e-commerce and online stores, we will be 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 bank transfer
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 add these lines to the e-mail templates (Contents -> E-Mail Manager) in Template (send_order):

{if $banktransfer_owner}

Direct debit procedure

Account holder: {$banktransfer_owner}
Name of the bank: {$banktransfer_bank_name}
Bank sort code: {$banktransfer_blz}
Account number: {$banktransfer_number}
Iban: {$banktransfer_iban}
Bic / Swift: {$banktransfer_bic}


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

Are you interested in e-commerce or do you run your own business online? Then take a look at our other blog articles on the topic of e-commerce!

What is your project? If you want to tell us about it, we'll call you back!

from 29.11.2017

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.

You always want to stay at the cutting edge of technology Don't miss any more news and blog posts.
We also have the following interesting posts from our tech blog for you on this topic
Shopware 7? Release date, features and more

When is Shopware 7 coming? We'll bring you up to date! ✓ Current Shopware version ✓ Planned functions, release date and more

How to increase webshop sales with conversion optimization

Would you like to increase the conversion of your online store in order to generate more sales? We have some tips for creating an online store that will certainly help you achieve this!

The Idealo integration for the Shopware online store

Do you have a Shopware online store and want to open up another marketing channel? Then the Idealo integration is just right for you!