PrestaShop show comment in invoice

PrestaShop order comment in invoice

To show user comment in PrestaShop PDF invoice Edit file classes/pdf/HTMLTemplateInvoice.php

Inside function getContent(), find around line 161

Add below

In the same file, around line 333, find the $array variable, inside it, add

Edit file pdf/invoice.tpl


Add above

Back to PrestaShop […]

Read More…

PrestaShop show total product weight in PDF invoice

Show weight in prestashop invoice

To show total product weight in PrestaShop PDF invoice, edit file.

Inside function getContent(), on line 166, find

Replace with

On around line 332, find

Above $data line, add

Inside the array, add

Now we need to edit the PDF template file.

Inside the file, find

Add […]

Read More…

PrestaShop add customer email to invoice

PrestaShop show customer email

PrestaShop PDF invoice won’t show customer email address by default for some strange reason. To show the email address in the Invoice, we need to manually modify PrestaShop files. This instruction is tested on PrestaShop version To show customer email address in PrestaShop PDF invoice, edit file

On line 329, find

Inside […]

Read More…

PrestaShop Error Declaration of Cart::getPackageShippingCost

On a PrestaShop site, i get error message

To fix this error, edit file /var/www/vhosts/ Find line

Replace with

This is because orderide class have improper function definiation, this may be due to some outdated PrestaShop modules. See PrestaShop […]

Read More…

Nginx upstream sent too big header

Plesk Nginx

When I log in to a PrestaShop website, I get an error on a Plesk server.

On checking error login for the site in folder /var/www/vhosts/, I found the following error message proxy_error_log:2020/11/25 19:41:41 [error] 1809#0: *39664 upstream sent too big header while reading response header from upstream, client:, server:, request: “POST […]

Read More…

Enable SSL in PrestaShop 1.7

To enable SSL in PrestaShop 1.7, go to

On this page, you need to set YES for Enable SSL. After saving, you can enable “Enable SSL on all pages”. Using phpMyAdmin/MySQL You can run following SQL query to enable SSL.

See PrestaShop […]

Read More…

PrestaShop Product Images not showing

PrestaShop SEO URL configuration

After migrating a PrestaShop 1.7 web site to another domain, site did not show product images. To fix this, you need to regenerate .htaccess by disabling and enabling “Friendly URL”. Login to PrestaShop Admin area, go to

On this page, scroll down to “Set up URLs” section. Select NO for “Friendly URL”, then click […]

Read More…

Reset Prestashop 1.6 admin password

To reset admin password for prestashop 1.6 or below, find value of _COOKIE_KEY from file

The line look like

Now you need to update ps_employee table using following SQL command.

Replace “YOUR_NEW_PASSOWRD_HERE” with your new password. ps_employee maybe differnt depending on what table prefix you selected during prestashop installation. id_employee=1, change this […]

Read More…