StackPath Support

Setup Guide: Prestashop 1.7

In this article, we'll help you setup the Stackpath SecureCDN with a website on Prestashop 1.7. If your website is using an older iteration of Prestashop, please refer to this tutorial. This tutorial assumes that you have already created a Site. If you didn't, you can find the tutorials on how to create one here:

Before you begin, we highly recommend you test the performance of your site using Google Page Speed or Pingdom Tools. You can test your site now and after setting up the plugin for a before and after performance comparison.

This tutorial assumes you've already gone through the steps to create a Site in your SecureCDN account. 

Installation

  1. Login to the Stackpath Control Panel and copy the CDN URL of your site.
    StackPath_-_yetanothertest_-_Settings.png
  2. Log in to your PrestaShop admin panel. You can access the admin panel by typing domain.com/admin in your browser.
    Kontek__PrestaShop__.png
  3. In the admin panel on the right side menu select Advanced Parameters and in expanding menu select Performance.
    Performance___Kontek.png
  4. The first settings to adjust is Smarty. Smarty is the name of the template language used by PrestaShop's themes. For best optimization, you should set Template compilation to Recompile templates if the files have been updated. By making this change PrestaShop will cache your HTML, but it will check for updates. If your theme gets an update, PrestaShop will update your theme and cache new version of it.
    1. The cache should be turned on and caching type should be set on File System. Also, it's good practice to set the cache to be cleared every time something is modified. When you're finished click the save button in the right bottom corner and scroll down.
      Performance___Kontek.png
  5. Next are the Debug mode settings. Those settings are used for testing and we recommend you to let someone with technical skills set them. For setting CDN you should disable all three options. Click save in right bottom corner and scroll down.
    debug.png

  6. Scroll to the Optional Features.Combinations. Product combinations enable you to have a whole product line out of a single product: varying size, colors, capacity, etc.
    1. Features. Product features enable you to indicate the product-specific information: weight, material, country of origin, etc.
    2. Customer groups. Customer groups enable you to group customers in order to give them certain privileges and restrictions: discount, module restrictions, etc.

Those options won't affect CDN performance so you can set them as you wish. Click save in right bottom corner and scroll down.

option___Kontek.png

6. Next set of settings is called CCC( Combine, Compress, and Cache). This is settings for compression of css and javascript. Also, you can turn on Apache optimization, if you do that it will add a directive in your .htaccess file, which should improve caching and compression. When you set it -  click save in right bottom corner and scroll down.cache.png

 

7. Scroll down to the section called Media Servers and a field called Media server #1. In that field paste your CDN URL. Other 2 fields can be used for subdomains. When you're done click save in the right bottom corner and scroll down.

 medi2___Kontek.png

If you completed all steps correctly your CDN should be implemented.

NOTE: URL on the screenshots is an example URL, you should use the URL from your Control Panel. If you find any issue with setting up CDN you can always contact our technical support engineers 24/7/365. 

Return to top