Magento – Payment Method / Zahlart Sofortüberweisung mit sinnlosem Text This source file is subject to the Open

Wer feststellen musste, dass in Rechnungen, die mit Sofortüberweisung bezahlt wurden ziemlich viel sinnloser Text angezeigt wird, kann dies durch eine kleine Änderung ändern. Der Text, der angezeigt wird lautet:

This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * @category Paymentnetwork * @package Paymentnetwork_Sofortueberweisung * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @version $Id: sofortueberweisung.phtml 3844 2012-04-18 07:37:02Z dehn $ */ –> Paymentinformations: SOFORT Überweisung Interne Transaktions-ID von SOFORT AG: XYZZZ-XYZZZZ-XYZZZZD1E-DFE1 (bitte angeben bei Support-Anfragen).

Ein Spaßvogel hat sich über die Magento Logik hinweggesetzt und entgegen des Magento Standards nicht

<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category Paymentnetwork
* @package Paymentnetwork_Sofortueberweisung
* @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @version $Id: sofortueberweisung.phtml 3844 2012-04-18 07:37:02Z dehn $
*/

?>

but

<!–
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category Paymentnetwork
* @package Paymentnetwork_Sofortueberweisung
* @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @version $Id: sofortueberweisung.phtml 3844 2012-04-18 07:37:02Z dehn $
*/

–>

written. Und so taucht der Absatz auf den Rechnungen auf. Um dies zu verhindern, müssen wir also den Magento Standard herstellen. Hierzu öffnen wir für Sofortüberweisung die Datei sofortueberweisung.phtml im Ordner app/design/adminhtml/default/default/template/pnsofortueberweisung/info/pdf (es gibt sie auch nochmal im base Order sollte es nicht klappen) und ersetzen wie oben beschrieben.

Anschließend hochladen und evtl. Clear cache. Nun lassen sich alle Rechnungen wieder wie gewohnt drucken. Dieser Bug ist in der Sofort Überweisung Extension Version 2.4.0 enthalten.

Witzigerweise teilte mir ein Mitarbeiter bei der Hotline mit, dass ihnen dieses Problem bekannt sei, man müsse eben den o.g. Weg gehen….was ein Unternehmen.

Used in Magento Version 1.8.1.0 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *