How To Setup gmail SMTP in Prestashop

Email is one of the best things that happens in our life, with email we could share documents, news, photo, file, etc. In ecommerce email is also have important roles. With email we could follow up customers who registered for our newsletter, send them invoice, and others great stuff that we have.

Setting up an SMTP in prestashop is easy if you know how to do it. Here, I'll show you how to setup SMTP in your prestashop if you`re using gmail. If you are wrong when inputing the SMTP credentials, you will have error message like this :
Error: Please check your configuration
The SMTP connection failed to start [ :25]: fsockopen returned Error Number 0 and Error String 'php_network_getaddresses: getaddrinfo failed: Name or service not known'
Looks bad huh ?  To correct the error above, please try the following :

Here is the gmail setting in prestashop.

1. On your gmail account enable smtp and imap AND enable "allow less safe apps"
2. On your prestashop Backend -> Advanced Parameters -> Email:
Mail domain name: leave this box empty
smtp server:
smtp username: your individual username (= your full gmail-address like
smtp password: your individual password (= your Gmail login password)
encryption: SSL enabled
Port: 465

There you go. Please give it a try.

How to Add Tracking Number To Prestashop Email Template

Many assumed the tracking numbers were viewable in the prestashop front office for the customer in their account, but have realized that this is not the case. The "In Transit" e-mail that is sent to the customer upon inputting the tracking number in the BO only provides a link to a website (example for those who use USPS, so the link is as that is where the customer will track their package). This link would only be helpful if the tracking number that I input for individual customers is included in the same e-mail. At the very least, the number should be viewable somewhere in the customers' account, but it is not.

So how can we  Add Tracking Number To Prestashop Email Template ?

1. Don't forget to backup your prestashop file first
2. You need to edit the admin/tabs/AdminOrders.php file, inside is a function called postProcess
3. Find following code. Add the bold code inside it.
$templateVars = array(
    '{followup}' => str_replace('@', $order->shipping_number, $carrier->url),
    '{firstname}' => $customer->firstname,
    '{lastname}' => $customer->lastname,
    '{shipping_number}' => $shipping_number,
    '{id_order}' => (int)($order->id)
4. in your mail template for english it is in /mail/en/ named in_transit.html and in_transit.txt, add {shipping_number} where ever you want the tracking number to appear. 

For latest version of prestashop (1.5 and above), you need to find the code in the controllers/admin/AdminOrdersController. Look for the following code
$order->shipping_number)$templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url));
change it to :
if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number)$templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url),
'{shipping_number}' => $order->shipping_number

There is a module that could make your life easier if you have lots of tracking number to input. This module could import all your tracking number at once. Orders will be updated and your customers will receive an email with the tracking URL of their parcels. Module features :
  1. Compatible from Prestashop 1.1 to 1.6
  2. You can choose the orders status after the import (most of the time “Shipped”)
  3. You can choose the CSV format to adapt the module to your needs: Header lines, column separator, columns numbers
  4. You can choose the identifier of your orders: Order ID, cart ID, invoice number or delivery number
  5. Free and automatic updates of the module
  6. Access personalized support directly from the module page
You could check this awesome module by clicking this link 

How to remove "Shop powered by Prestashop" in Facebook link

Social media is one of many traffic sources you could use for your ecommerce site. Facebook is one of the biggest social media platform that people use for their social activity that can be use for increasing traffic and of course sales.

If you or your customer share your ecommerce store products on facebook, and you did like to remove that from Facebook links (for example, when I post my website link on the FB wall). Where is that sneaky file that you should edit?

Folow this steps to remove "powered by prestashop" when you`re sharing on your facebook wall.

Go to Preferences > Meta-Tags, edit the "index" page, then change the "Meta description" field.

Hope this could help you.

Responsive Prestashop 1.6.4 Themes

PrestaShop is now available. This maintenance release closes 19 issues since version (released on November 26th, 2015). Prestashop is the fourth patch release for PrestaShop

Here are the changes that brings:
  • PHP 7 is now fully supported
  • MySQL 5.7 is almost fully supported (you will still encounter some glitches)
  • Order page: Tax excluded price is now displayed on the product list in the back office
  • Product page: Discounts are correctly refreshed when quantity is changed
  • Cart rules page: the product input field hides when free gift is disabled
  • Fix invoice numbers in multishop mode
  • Addons modal dialog supports translation
  • Fix combinations prices for shops with multiple currencies
  • Fix robot.txt rules for multilingual shops
  • Uploader is no longer case-sensitive for extensions
  • Fix error when address is deleted but still used by a cart
  • Shipping cost calculation is now better rounded
  • CMS content, metas and countries translated into Swedish
  • And other minor fixes
Here are Responsive Prestashop 1.6.4 Themes that you want to consider
  1. Olantek Prestashop Responsive Theme

    Olantek is specially designed for mega shop, fashion designer clothes, jewellery, beauty store,Food & Drink, Sport, furniture and Multipurpose stores. Olantek Prestashop Responsive Theme is looking good with colors combination and layout. All sub pages are customized. It is very nice with its clean and professional look. Browser compability IE10, IE11, Firefox, Safari, Opera, Chrome. Olantek Support prestashop 1.6.1 and Prestashop 1.6.1.x


    Lilama Demo

  3. HugeShop - Wonderful Multi Concept Responsive Prestashop Theme
  4. Multipurpose Responsive Prestashop theme which can be used for any kind of online store. It’s easy to customize your Prestashop exactly the way you want it. This theme has many templates with many different layouts in home page. Hugeshop prestashop theme is perfect for any type of store and comes with many new features. This prestashop theme also have a lot of powerful features to help users to effectively manage the shops.

    Hugeshop Responsive Prestashop Features

    Lilama Demo

404 Bad Request On Prestashop When Adding Product Price

You successfully installed prestashop on your web server, and the next big things you do was adding product to it. But, shit happens when you not expect them and you got the following error:
You don't have permission to access /******/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

There wasn't anything in the php.ini related to this issue but while you are there, check your resource limits because if they are too low, you will see errors elsewhere. This is something that should be adjusted, based on what your hosts limitations are, for any PS store. Often times the default php.ini has room to increase these variables. Here is an example oh resource in php.ini but your host may not allow certain variables - check with them to max out your resources available. 
; Resource Limits ;

max_execution_time = 10000     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 1024M      ; Maximum amount of memory a script may consume (32MB)
suhosin.get.max_vars = 10000; = 10000;
max_input_vars = 6000;
For anyone that runs into this issue, check with your hosting provider. Permission settings may have to be modified on the server. Below is an example on mod_security error on web server that you ask your hosting company to check it.

Your host should be able to disable that rule by SecRuleRemoveById ID_number

[error] [client ##.##.####] ModSecurity: Access denied
required. [file "/usr/local/apache/conf/modsec2_rules/10_asl_rules.conf"] [line
"497"] [id "######"] [rev "287"] [msg " UNSUPPORTED DELAYED Rules:
Remote File Injection attempt in ARGS (AE)"] [data ""] [severity
"CRITICAL"] [hostname "##.##.####"] [uri "/psmanager/index.php"] [unique_id