Posted on 1 Comment

Add affiliate tracking code in Prestashop

Affiliate Marketing

In the example below I am using the tracking code for the 2Parale platform ( affiliate marketing network in Romania and Bulgaria). The tracking code received from them looks something like this:

Affiliate Marketing

The above tracking code is used to track if a sale has been completed successfully. In order to do that you must provide some variables:

  • __ADD_SALE_VALUE__ represents the total value of the sale (without taxes and shipping)
  •  __ADD_TRANSACTION_ID__ represents the unique transaction ID that identifies the transaction in your store
  •  __ADD_DESCRIPTION__  this is an informative message about the transaction (or the actual product description)

This tracking code must be added to your Thank You page, or order-confirmation.tpl file, which is located  in themes/theme/order-confirmation.tpl Continue reading Add affiliate tracking code in Prestashop

Posted on 5 Comments

Add Google Analytics tracking code to your Prestashop template

In addition to Google Analytics module available in Prestashop you can add Google Analytics tracking code to your Prestashop template – the code should be inserted into the themes\theme_name\footer.tpl file.

Insert the code before the closing </body> tag

Posted on 40 Comments

Prestashop Invoice Templates for versions 1.5 and 1.6

Prestashop Invoice Template

Modifying Prestashop invoice template is quite difficult, but thanks to some really nice guys who shared their work, there are a few invoice templates that can be used.

If you like any of these templates you can download them and just replace the .tpl files:

– if you use the DEFAULT theme then you must  replace the .tpl files located in /public_html/pdf
– if you use a custom theme you need to replace the .tpl files from themes/custom_theme_name/pdf 

Supremacy2k wrote an excellent step-by-step guide how to customize the Prestashop invoice template. Starting from their templates you can customize the layout of your invoices to look more professional, but this will require some programming skills. However, following the step-by-step instruction provided in his guide you will be able to create your own invoice.


Prestashop sample invoice

Source files: gdrive


greenthink prestashop invoice template

Source files: gdrive


cardscapital prestashop invoice template

Source files: gdrive
[block id=”responsive-ads-inside-posts”]

Latin script

For Central European languages that use Latin script (Polish, Czech, Slovak, Hungarian, Slovene, Serbian, Croatian, Romanian and Albanian) you need to change the default font in order to display characters correctly. Use Freeserif fon instead of using Helvetica.

You can change the default font by editing the PDFGenerator.php file, located in classes\pdf\PdfGenerator.php and search for:

and replace it with:

Save the file and you are ready to use your new Prestashop invoice template.