Magento 2 safe

We guarantee that all extensions will be updated when Magento 2 releases.

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.

magmex Advent Calendar

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



Technical Information

Technical Information

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

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.


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/ 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 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 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 can I send Magento invoice/shipment emails to store owner only?
With our AutomaticInvoice extension you can send invoice emails to store owner exclusively (i.e. not to the customer). Therefore you have to set the following configurations:
  • System > Configuration > AutomaticInvoice > Invoice > Notify Customer: No
  • System > Configuration > Sales Emails > Invoice > Send Order Copy Method: Separate Email

The same applies to shipment emails as well:
  • System > Configuration > AutomaticInvoice > Shipment > Notify Customer: No
  • System> Configuration > Sales Emails > Shipment > Send Order Copy Method: Separate Email
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 extension?
Please find as follows a short overview how to install our Magento extensions, using the sample of the AdvancedInvoiceLayout extension:


  • 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


  • 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 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
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.
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://.


You have a question that is not listed here?