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

Find

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 1.7.6.7. To show customer email address in PrestaShop PDF invoice, edit file

On line 329, find

Inside […]

Read More…

Enable memcached on Magento 2 in Plesk Server

memcached telnet

To install memcached, run

Enable memcached php module

This is for PHP 7.3, change the path to pecl for your version of PHP. Activate memcached

Update php handler

Restart php-fpm

Install memcached deamon

Restart memcached

Verify it is working with netstat

Activate memcached in Magento 2 Edit […]

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/site.com/httpdocs/override/classes/Cart.php 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…

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…

Prestashop

PrestaShop Migration Prestashop Change URL Enable SSL in PrestaShop 1.7 Reset Prestashop admin password Reset Prestashop 1.6 admin password PrestaShop Tips PrestaShop 1.6 regenerate htaccess How to Clear Cache in PrestaShop PrestaShop Change Database Name PrestaShop add customer email to invoice PrestaShop show total product weight in PDF invoice PrestaShop show comment in invoice PrestaShop […]

Read More…