Magento 2 safe

We guarantee that all extensions will be available for Magento 1 and 2.

7 Days Money Back Garantuee

Within a timeframe of 7 days you are allowed to get the money back from us if you are not confident with our modules.

Administration

More Views

AdvancedInvoiceLayout for Magento 1

(4.7 Stars)
€89.00
  • Customizable Layouts for PDF invoices/shipments/creditmemos via HTML/CSS (Sample)
  • send PDF as attachment for order email
  • feature-rich (personalization, crosssells, specific texts, etc.)
  • developed by a Magento Certified Developer since 2008
  • compatible with Magento Community Edition 1.2.x - 1.9.x
Please type in your Magento Admin domain, e.g. vianetz.com.

* Required Fields

* Prices excl. tax. Downloadable products, no shipping costs.

Details

Highlights
  • Display of custom product attributes on PDF invoice
  • Display crosssell products on PDF invoice document
  • Use of own's letter paper
    The letter paper can be deposited as a PDF template file.
  • API-Interface for Developers
Features:
  • 2- and 3-column footer layout
  • Possibility to download the PDF invoices, shipments and creditmemos in the frontend for the customer
  • Support for Downloadable Products
  • Support for Bundled Products
  • Sending of PDF invoice as attachment
  • Automatic logo scaling and positioning via the administration interface
  • Display of additional informations, e.g. invoice date and customer number
  • Display of customer comments
  • Compatibility with module Checkout Fields Manager: Display of checkout attributes on PDF invoice
  • Possibility to differentiate taxes by classes and display of different tax labels
  • Possiblity to show Tax / VAT number and email address of the customer on invoices
  • Font size adjustable via administration interface
  • Free Text input with placeholders for invoice, shipment and creditmemo
  • Decrease of PDF file size by approximately 90 %
  • Display of gift messages on invoice and shipment
  • Different layouts per StoreView
  • View download links in invoice
  • Configuration of footer text via the administration interface
  • simple customization by user due to detailed code comments
  • Fully compatible with the extension "Market Ready Germany", i.e. the module symmetrics_invoicepdf will be replaced with AdvancedInvoiceLayout, all other parts of the package can be used without restrictions.
  • easy and fast installation
A document with installation notes is available in the Samples section.

Technical Information

Module compatible with Aschroder_SMTPPro, Firegento, Idev_OneStepCheckout, M2EPro, Mage_BankPayment, Mage_Debit, Market Ready Germany, Payone, Vianetz_AutomaticInvoice, Vianetz_TaxVatCheck
Language files in this package English - en_US, French - fr_FR, German - de_DE, Nederland - nl_NL
Module Version 2.3.22
Extension Coding Standard PSR-2
Extension Rewrites
  • Mage_Core_Model_Email_Template_Mailer (only required for the email attachments),
  • Mage_Sales_Model_Order_Pdf_Invoice, Mage_Sales_Model_Order_Pdf_Shipment, Mage_Sales_Model_Order_Pdf_Creditmemo (these rewrites are all optional and only exists for backward compatibility with other 3rd-party extensions)

Technical Information

Module compatible with Aschroder_SMTPPro, Firegento, Idev_OneStepCheckout, M2EPro, Mage_BankPayment, Mage_Debit, Market Ready Germany, Payone, Vianetz_AutomaticInvoice, Vianetz_TaxVatCheck
Language files in this package English - en_US, French - fr_FR, German - de_DE, Nederland - nl_NL
Module Version 2.3.22
Extension Coding Standard PSR-2
Extension Rewrites
  • Mage_Core_Model_Email_Template_Mailer (only required for the email attachments),
  • Mage_Sales_Model_Order_Pdf_Invoice, Mage_Sales_Model_Order_Pdf_Shipment, Mage_Sales_Model_Order_Pdf_Creditmemo (these rewrites are all optional and only exists for backward compatibility with other 3rd-party extensions)
There is no warranty, that the information in documents on this website and related ones are complete, correct and up-to-date in every case. The consultation of a legal practitioner is always recommended.
Completely all the features mentioned on this site are only available for the latest Magento version. Former Magento releases may have a lack of some functionalities.
If the functionality of modules from other vendors intersect with this one, unpredictable issues may arise.
Please get informed about our License Agreement and our thinking about Commercial Open Source.


Are there any more information about our Magento Extension that you would like to see here? Just contact us.

Frequently Asked Questions

Can I get a license for my development/staging domain?

These licenses are included in every production domain license. Please send us after your purchase for your production domain an email with your order number and the desired development domain. We're happy to extend your license then.

Cyrillic characters are displayed as "?" on the Magento PDF invoice. What can I do?

The problem is that the chosen font family does not support the Cyrillic characters. So far no font with Cyrillic support is included into the AdvancedInvoiceLayout extension. That means that you have to get your own font family with support for Cyrillic characters and include it into the AdvancedInvoiceLayout extension.

Please get in touch with us so we can send you a description of the simple steps to perform in this case.

Error message "Mage registry key already exists" after extension installation
After installing a Magento extension you get the following error message, e.g. if you try to login the Magento admin backend:
Mage registry key <...> already exists


Solution:
Please confirm that you followed all installation steps that are mentioned in the Readme file of the module. Especially assure that the Magento cache is cleared, e.g. by emptying the var/cache/ directory in a Magento default installation and that the Magento compilation process has been triggered (if enabled).
How can I activate the PDF email attachment feature with other email extensions like Ebizmarts_Mandrill?

Important note

This issue is resolved in AdvancedInvoiceLayout Version 2.2.0. Please contact us to check if you can upgrade.

Short explanation

To realize the email attachment functionality in our AdvancedInvoiceLayout extension we had to extend the Magento core email logic to add methods for attaching documents. Unfortunately there is no way to do this without conflicts with other extensions that do the same, e.g. Ebizmarts_Mandrill or Aschroder_SMTPPro.

Solution

To solve this problem the following manual steps are required:

  • Make the AdvancedInvoiceLayout extension dependant on the other extension by creating a new file app/etc/modules/ZVianetz_AdvancedInvoiceLayout_Compatibility.xml with the following content (replace OtherVendor_OtherExtension with the extension name)
    
    
        
            
                
                    
                
            
        
     
    
  • Copy the file app/code/community/Vianetz/AdvancedInvoiceLayout/Model/Email/Template to app/code/local/Vianetz/AdvancedInvoiceLayout/Model/Email/Template and replace the beginning with
    Vianetz_AdvancedInvoiceLayout_Model_Email_Template extends Ebizmarts_Mandrill_Model_Email_Template
    
  • Flush the Magento Cache

Please find also further general discussions in this support thread.

How can I change the font family in the Magento PDF invoice?

With our AdvancedInvoiceLayout extension it is easy to change the font family in the Magento PDF invoice.
Therefore the AdvancedInvoiceLayout extensions ships with several default fonts which you can choose from:
Courier, DejaVu Sans, Helvetica, Times

Due to licensing issues it is not possible to add other font families by default but you can also easily add your own font family with the following steps:

  • First of all you need to temporarily rename the file lib/dompdf/dompdf_config.custom.inc.php to something else.
  • Then you need to make sure that the used DomPDF library gets to know the new font by executing the following command in the Magento root directory (replace Verdana with your desired font):
    php -f lib/dompdf/load_font.php 'Verdana' /mnt/c_drive/WINDOWS/Fonts/times.ttf

  • Afterwards inject the new font into the XML config object (see app/code/community/Vianetz/AdvancedInvoiceLayout/etc/config.xml) by extending the XML node default/advancedinvoicelayout/fonts, e.g.
    <verdana title="Verdana"/>
    
    The node title must match the generated file in step 2.

And that's it. Now you can choose the new font family in the configuration section under System > Configuration > AdvancedInvoiceLayout.

How can I configure the address format?
Since Magento 1.5 the address format can be configured under System->Configuration->Customer Configuration->Address Templates->PDF. Newlines are marked as pipes (|).
How can I configure the tax format on the PDF invoice?
Following a sample for a AdvancedInvoiceLayout tax configuration that many of our German shop owners use (based on Magento 1.7.x):
  • System » Configuration » AdvancedInvoiceLayout » General » Tax Display: Including Tax
  • System » Configuration » Tax » Orders, Invoices, Credit Memos Display Settings » Include Tax In Grand Total: Yes
  • System » Configuration » Tax » Orders, Invoices, Credit Memos Display Settings » Display Full Tax Summary: Yes
    (if this is set to "No" tax is not splitted into percent classes)
How can I customize the Magento PDF invoice layout?
With our Magento Extension AdvancedInvoiceLayout it is very easy to create individual layouts for Magento PDF invoices/shipments and creditmemos.
The Extension ships with a base HTML layout that already fits for many cases. Furthermore we will release more enhanced step by step so that you can customize the PDF layout without any effort.

Your own customizations can be done with HTML/CSS. The appropriate files are in the following directories
  • app/design/frontend/base/default/template/advancedinvoicelayout/default
  • skin/frontend/base/default/advancedinvoicelayout/default/css

We recommend to do your own customizations within these files in your custom theme folder to avoid loosing changes in case that the Extension got an upgrade.
I.e. assuming that your Magento theme is in folder app/design/frontend/MYTHEME/default/ and you want to customize the invoice layout we recommend to copy the file app/design/frontend/base/default/template/advancedinvoicelayout/invoice.phtml to app/design/frontend/MYTHEME/template/default/advancedinvoicelayout/invoice.phtml.

For more experienced users we also deliver SASS files that allows an easier modification of e.g. colors in the whole document.

Please see also how to customize the payment block in the Magento PDF invoice.

Basically it is always recommended to activate the Debug Mode of the AdvancedInvoiceLayout extension for testing different layouts under System > Configuration > AdvancedInvoiceLayout. With activated Debug Mode the intermediate HTML file will be saved with each print of the PDF invoice, shipment or creditmemo into the directory var/tmp/invoice_debug.html. Therewith you can analyze and customize the HTML structure and CSS style sheets more easily.
However you are advised to disable this setting in production environments for performance reasons.

Please see also the available variables.

How can I customize the payment block in the Magento PDF invoice?
The AdvancedInvoiceLayout Extension prints a block with information about the chosen payment method onto the PDF invoice. This block is dynamically filled by the used Magento Payment Extension, e.g. PayPal, DebitPayment, Credit Card, etc. and so this is information is contained in the appropriate Extension files. For example for PayPal the payer email address is printed, for credit cards the credit card number and so on.

So if we want to customize e.g. the text/formatting that is printed on the invoice in case of "Purchase Order" payments we have to do the following steps:
  • copy file app/design/frontend/base/default/template/payment/info/purchaseorder.phtml to your theme folder i.e. app/design/frontend//default/template/payment/purchaseorder.phtml
  • customize the file to your needs

Basically it is always recommended to activate the Debug Mode of the AdvancedInvoiceLayout extension for testing different layouts under System > Configuration > AdvancedInvoiceLayout. With activated Debug Mode the intermediate HTML file will be saved with each print of the PDF invoice, shipment or creditmemo into the directory var/tmp/invoice_debug.html. Therewith you can analyze and customize the HTML structure and CSS style sheets more easily.
However you are advised to disable this setting in production environments for performance reasons.

This process can be done analoguous for other payment methods as well.

Please see also how to customize the Magento PDF layout in general.

How can I force a page break in the Magento invoice PDF?

A page break can be forced in the invoice PDF by adding an HTML element with the CSS class pageBreak.

See also our FAQ article on how to customize the Magento invoice PDF layout.

How can I print barcodes on the Magento PDF invoice?
With our Advanced Invoice Layout Extension for Magento it is very easy to print barcodes of any code on the Magento PDF invoice, shipment or creditmemo.
All you have to do is to choose a font family that supports your desired barcode format and use that in the Advanced Invoice Layout CSS file for printing the barcode. Voilà!

See also our FAQ article on how to customize the PDF invoice layout.

How can I run the unit tests for your extension?
The unit tests of our extensions are based on the EcomDev_PHPUnit module that can be found on Github.
For installation instructions please see the appropriate manual.

After installation of the EcomDev_PHPUnit extension you can run e.g. the AdvancedInvoiceLayout tests by the following command in the root folder of your Magento installation:
phpunit --group Vianetz_AdvancedInvoiceLayout


If everything is fine you should get a green output that says that all tests ran successfully.
How do I get the AdvancedInvoiceLayout extension to work with module AITOC Checkout Fields Manager?
Go to System->Manage AITOC Modules, click on link "Manage Class Rewrites" and scroll down to the text field "Indicate names of all base Magento classes, that you wouldn't like to overwrite" and add the value Mage_Sales_Model_Order_Pdf_Invoice there.
How to install the Magento 1 extension?
Please find as follows a short overview how to install our Magento extensions, using the sample of the AdvancedInvoiceLayout extension:

Preparations:

  • Do a backup of your Magento installation for safety reasons (database and files).
  • Disable Magento compilation feature (if activated): System->Tools->Compiler
  • Uninstall probably existing previous versions of the extension



Installation

  • 1Unzip the setup package and copy the contents of the src/ folder into the Magento root folder. (The folder structure is the same as in your Magento installation (e.g. app/, skin/, ..). No files will be overwritten.)
    Please assure that the files are uploaded with the same file user permissions as the Magento installation!
  • 2 Clear the Magento cache (z.B. System->Cache Management) and related caches if available (e.g. APC, Varnish, ..).
  • 3 Logout from the admin panel and then login again.


Congratulations, the installation has been successfully completed!

How to install the Magento 2 extension?
Please find as follows a short overview how to install our Magento 2 extensions, using the sample of the Advanced Invoice Layout for Magento 2 extension:

Are you looking for installing the extensions on Magento 1? Then please have a look at our related FAQ article.

Preparations:

  • Make sure that "composer" is installed on your system. For details see these composer installation instructions.
  • Get your Magento API access keys (required for composer authentication) , as described in the Magento documentation.
  • Do a backup of your Magento installation for safety reasons (database and files).
  • Uninstall probably existing previous versions of the extension



Installation with Composer

  • 1 Create a new folder for the extension in app/code/, e.g. app/code/Vianetz/AdvancedInvoiceLayout.
  • 2 Unzip the setup package and copy the contents into the newly created folder. The folder structure should now be app/code/Vianetz/AdvancedInvoiceLayout/Block, app/code/Vianetz/AdvancedInvoiceLayout/etc, etc.
    Please assure that the files are uploaded with the same file user permissions as the Magento installation!
  • 3 Install extension requirements via composer on the command line in your Magento root directory:
    composer require vianetz/pdf-generator:1.*
    composer require vianetz/module-core:1.*
    
    Note: If you use e.g. an older PHP version on the command line than on your webserver then you can add the command line argument --ignore-platform-reqs to ignore PHP version checks.
  • 4 Enable the Extension and run the setup process by executing the following on the command line in your Magento root directory:
    bin/magento module:enable Vianetz_Core
    bin/magento module:enable Vianetz_AdvancedInvoiceLayout
    bin/magento setup:upgrade
    
  • 5 Restart compilation (only required in Magento Production mode):
    bin/magento setup:di:compile
    
  • 6 Clear the Magento cache (e.g. System > Cache Management) and related caches if available (e.g. APC, Varnish, ..).


Congratulations, the installation has been successfully completed!

How to translate the Magento PDF invoice?

With our AdvancedInvoiceLayout extension you are able to customize the Magento default PDF invoice layout to adapt it to your needs and improve the look'n'feel of the invoice.
Therefore you can also easily add your own translations (of course this in accordance to Magento best practices):

  • Identify the text string that you want to translate in the template files in app/design/frontend/base/default/template/advancedinvoicelayout, e.g. the string "Invoice #%s" in app/design/frontend/base/default/template/advancedinvoicelayout/default/invoice.phtml
  • Search for this text string in file app/locale/xx_XX/Vianetz_AdvancedInvoiceLayout.csv with xx_XX being the locale code, e.g. "de_DE".
  • If the text string is available just change the translation to your needs, otherwise add a new line at the end of the file with your translation like
    "Invoice #%s","Ihre Rechnung Nr. %s"
  • Flush the Magento Cache in the backend
I get a "404"-Error after the installation of the extension
Symptom: A 404 error is shown if you go to System->Configuration and choose e.g. AdvancedInvoiceLayout tab.

To solve this kind of error you need to log out of the backend and log in again. Then the tab should be successfully accessible.
I get the error message "There has been an error processing your request". What can I do?
Please take a look at the var/report directory and look for a file with the number mentioned in the error report. This file contains additional information about the problem. If you do not have a solution for this please send us the contents of the file to support@vianetz.com.
Magento shows a Blank Page
While executing some actions Magento is only showing a blank page without any content.
This behaviour is mostly caused by a Fatal PHP error. Please have a look into your PHP log files (perhaps ask your hoster) and/or see the Magento error log in the directory var/log of your Magento installation.
PDF documents cannot be generated when using a PDF background template file
Solution: Try to save the background PDF template file, especially save the PDF as PDF/A for Acrobat 1.4 or Acrobat 5.
What kind of variables are available in AdvancedInvoiceLayout configuration?
For footer columns and free texts the following variables are available in System > Configuration > AdvancedInvoiceLayout:
Variable/ExpressionExplanation
{{var increment_id}}Invoice/Shipment/Creditmemo Increment Id
{{var customer_id}}Customer Id
{{var order_id}}Order Id
{{var increment_id}}Invoice/Shipment/Creditmemo Increment Id
{{depend is_invoice}}
Text only for invoices
{{/depend}}
"Text only for invoices" will only be shown on invoice PDFs.
{{depend is_shipment}}
Text only for shipments
{{/depend}}
"Text only for shipments" will only be shown on shipment PDFs.
{{depend is_creditmemo}}
Text only for creditmemos
{{/depend}}
"Text only for creditmemos" will only be shown on creditmemo PDFs.
{{var billing_address}}Billing Address of Order (formatting can be configured)
{{var shipping_address}}Shipping Address of Order (formatting can be configured)
{{date}}Current Date (formatted in your locale)
{{date+X}}Current Date plus specified number of days, e.g. for specifying due/delivery dates.
(Replace "X" with number of days)
{{var prefix}}Customer Prefix
{{var firstname}}Customer Firstname
{{var lastname}}Customer Lastname
{{var shipping_date}}The date of the first shipment (if any)
{{var payment_method.getTitle()}}The payment method title
{{depend payment_method_purchaseorder}}
Only for invoices with payment method purchase order.
{{/depend}}
With this statement you can insert text that is dependant on the payment method, in this example purchaseorder. Just replace the text "purchaseorder" with your payment method code, e.g. "checkmo", "banktransfer", "payone", ..


If you have the extension Firegento_MageSetup installed the following additional variables are available:

Variable/ExpressionExplanation
{{var merchant_tax_number}}The configured tax number of the merchant
{{var merchant_vat_number}}The configured vat number of the merchant
{{var bank_account}}The configured bank account
{{var bank_code_number}}The configured bank code number
{{var bank_name}}The configured bank name
{{var swift}}The configured swift number
{{var iban}}The configured iban number
Which data should I submit for a support request to vianetz?

Please send us the following data to help you answer your support request.

  • used extension version (e.g. AdvancedInvoiceLayout 2.0.13)
    You can find the extension version in the configuration section e.g. in System > Configuration > AdvancedInvoiceLayout
  • domain on which you are using the extension and which produces the problem
  • Magento version

Furthermore if we should support you within our installation support, please provide us with the following details:

  • FTP/SSH access (username, password and path to Magento installation directory)
  • Magento Backend access (username, password and URL)


Please verify that all access data is working properly, especially if the Magento user has the correct group to login and view all relevant areas and the FTP user has write access to all folders of the Magento installation.
All data is kept confidentially.

Which domain name should I type in?

Please specify your exact production domain name of your Magento installation, i.e. including www. (if exists) and without leading http://.

Examples: www.vianetz.com, subdomain.example.com

You have a question that is not listed here?

Customer Reviews

  • Ein großes Lob für Ihre Magento-Erweiterung Advanced Invoice Layout. Nach frustrierenden Versuchen, selber die Standardrechnungen in Magentos PHP-Code zu modifizieren, und nach mehreren Fehlkäufen bei tschechischen Entwicklern, erhalten wir von Ihnen ein Produkt, das ausgezeichnet dokumentiert ist, sich problemlos installieren lässt, und auf Anhieb wie gewünscht funktioniert.

    Wir hatten die Hoffnung schon fast aufgegeben... (Review by Gast)
  • Die Rechnungen sehen jetzt tatsächlich besser aus. (Review by Anonym)
  • Haben das Modul plus Installationshilfe gekauft, sind sehr zufrieden mit dem Service und dem Ergebnis. Ein rundum zu empfehlendes Modul, welches jeden Euro wert ist. Vielen Dank!
    (Review by vianetz)
  • Wir haben das Advanced Invoice Layout für unseren Shop installiert und sind rundum sehr zufrieden damit. Die Rechnungen/Lieferscheine sehen nun endlich auch nach anständigen Rechnungen aus. Alles zudem noch sehr gut übers Backend einstellbar. Auch der Support kann sich sehen lassen. Ich habe nur 10 Minuten auf eine noch dazu sehr hilfreiche und freundliche Antwort warten müssen. Fazit: unbedingt zu empfehlen!!!
    (Review by vianetz)
  • It works now! And it looks very neat! Very well worth the 35 euro’s. Danke sehr! (Review by vianetz)
  • Hi All, I have received the e-mail contain the package. Installation in 3 min great succes. Thanks Massi for this extention. Im looking juste where i can put my logo to the invoice. Thanks.
    (Review by Printi.be )
  • It helpt me a lot... made some changes for the swiss market (address block is on the right side). 10 minutes. I thank you very mutch, would have taken me days to understand and redo.
    (Review by mrgiezen )
  • Endlich hat jemand die Rechnung brauchbar gemacht! Nice job!
    (Review by biwac INFORMATIK GmbH )
  • I bought this modul and installation was easy. Documentation is clear. No rpoblems. Support is good. Clear answers to my questions. I think money is well spend on this modul. Keep on the good work !
    (Review by Gijsbert )
  • Ich habe diese Modul gekauft und finde es Klasse! I'll write the rest in English since I'm no native German speaker. Basicly this is the best money I have spend in years. Instead of wasting at least a days work on tweaking the invoice myself, I installed this extension in 5 minutes. It works very simple, just upload the files to the right directory, clear your configuration cache, und you are ready to go. The PDF's that are created are about 12Kb instead of the standard 900Kb. I also received excellent answers from massi. Keep it up!
    (Review by Gui)

We recommended this extension to combine with the following extension(s)

  • AutomaticInvoice for Magento 1
    89,- €*
    AutomaticInvoice for Magento 1
    • Automatic generation of invoices/shipments based on order status and product type
    • Send invoice email to customer
  • TaxVatCheck for Magento 1
    100,- €*
    TaxVatCheck for Magento 1
    • Automatic validation of customer Tax Vat Id
    • Assignment to Magento customer groups depending on validation result