AddShoppers Help Desk

Support Center

[PrestaShop] Manual Installation Instructions

Last Updated: Aug 04, 2014 12:53PM EDT

These instructions are for installing AddShoppers manually on PrestaShop v1.4 or lower. If you're running PrestaShop v1.5+, we highly recommend using our built-in module. You can find instructions for that

The first thing you'll need to do is create your free AddShoppers account, which you'll be using in the steps below.

Social Analytics Installation

  1. Find the footer.tpl file in themes/prestashop.
  2. Copy and paste your Social Analytics code at the bottom of the file, just above the closing </body> tag.

Sharing Buttons Installation

  1. Find the product.tpl file in themes/prestashop.
  2. Select your desired sharing buttons in your AddShoppers dashboard.
  3. Copy and paste the code for your button(s) where you want the button(s) to appear.

ROI Tracking Installation

  1. Find the OrderConfirmationController.php file in Controllers/OrderConfirmationController.php.
  2. Copy and paste this code at the end of the "process" function:
    		$cart = new Cart((int)($this->id_cart));
     			'_order' => $this->id_order,
    			'_value' => $cart->getOrderTotal()

    (Click to enlarge)
  3. Find the order-confirmation.tpl file in themes/prestashop/order-confirmation.tpl
  4. Copy and paste your ROI Tracking code (make sure to choose PrestaShop from the dropdown menu) at the end of this file .

    (Click to enlarge)

​​Purchase Sharing Installation

  1. In your AddShoppers dashboard, go to Apps -> Purchase Sharing> and configure your sharing popup
  2. Find the order-confirmation.tpl file in themes/prestashop/order-confirmation.tpl
  3. Copy and Paste the purchase sharing code at the end of the file.

PrestaShop URLs Setup

Important: PrestaShop by default does not use SEO friendly URLs or include canonical links. This causes an incorrect URL to be shared using AddShoppers. Follow these steps to enable PrestaShop's SEO friendly URLs and canonical links.

  1. In your PrestaShop admin, go to Preferences -> SEO & URLs.
  2. Scroll down and choose "Yes" for "Friendly URL".
  3. Click Save.

Don't See Any Changes?

If you've added the code and still don't see the sharing buttons on your site, you might need to clear out your caches.

  1. In your PrestaShop Admin, go to Preferences -> Performance.
  2. Change "Force Compile" to "Yes" and "Cache" to "No" under the Smarty settings.
  3. Go to your site and load a product page. You should now see the AddShoppers buttons.
  4. Now, go back to the Preferences -> Performance settings and change the two settings back that you did in step 2: Change "Force Compile" to "Yes" and "Cache" to "No".

Contact Us

  • Please use the floating chat bubble in the bottom right hand side of your screen to initiate a request.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found