Support Blendee.com Support Blendee.com

  • Manuals And Support
    • Getting Started
    • Manuals And Support
    • Templates
  • Video Tutorial
  • Faq
  • Blog
  • English
    • Italiano
Home / Getting Started, Install Blendee / Implementation Example

Implementation Example

459 views 1 min , 3 sec read 0

Below is an example of the implementation of tracking scripts within an e-commerce developed with PrestaShop v. 1.6.1.1.

General Script

One possibility is to insert the main javascript (the one that allows you to activate all Blendee functions) in the header.tpl file of the current theme:

 

This will make the features of the Blendee platform available on every page. In particular, it will be possible to proceed with the correct tracking of the actions as indicated below (we present only some typical cases; please refer to the complete list of actions already proposed).

Category Page Tracking

(Category View)
In the category.tpl file of the current template we can insert (e.g. at the end of the file):

Product Page Tracking

(Product View)
In the product.tpl file of the current template we can insert (e.g. at the end of the file):

Purchase Tracking

(Salt)
If we choose to track the purchase on the order confirmation page, we must act on the file: porder- confirmation.tpl.
Plotting the order in this case is slightly more complicated, as in this file you need to make some variables available that may not be available in the template:

  • $idordine: A variable containing the order identifier
  • $prodlist: A variable containing the list of products that are part of the order itself
  • $currency: The currency used for the transaction

There are two steps to be taken:

1. In the controllers/front/OrderConfirmationController.php file, in the initContent() method, add the following lines of code just before the last line ($this→setTemplate(_PS_THEME_DIR_.’ order-confirmation.tpl’);):

$order = new Order($this->id_order);
$prodlist = $order->getProducts();
$currency = new Currency($order->id_currency);
$this->context->smarty->assign(array( 'adb_prodlist' => $prodlist, 'adb_idordine' => $this->id_order, 'adb_currency' => $currency->iso_code, ));

2. In the order-confirmation.tpl file, add at the bottom:

Was this content useful?

Thanks for contributing!

Yes No
prestashopsetup Getting StartedInstall Blendee

Related Articles

  • How to view your website when personalizing messages.
  • Login and Access to the Control Panel
  • How to show or hide the side menu
  • App Center

Search

Categories

  • 4A/B/XTesting
  • 5Account
  • 2AdServer: Reporting
  • 5AdServer: The Key Entities
  • 4Analytics
  • 3App Center
  • 2Audience Activation
  • 3Audience Platform Analytics
  • 10Audience Target
  • 5Audience Tracking Tag
  • 11Basic Settings
  • 7Buyer Personas
  • 11Campaigns Manager
  • 3Contents
  • 15Curated Audience
  • 10Dashboard
  • 1Direct Activation
  • 13E-mail Editor
  • 37E-mail Marketing
  • 9Experience Manager
  • 17Filters
  • 23Getting Started
  • 2Google AdWords
  • 3Media Gallery
  • 4Other Channels: Facebook Lead Ads
  • 2Other channels: Push Notifications
  • 3Other channels: Widget E-mail
  • 1Panel Research
  • 1Personalyzing your website
  • 14Segments
  • 1SMS Marketing
  • 24Template
  • 33Trigger
  • 1User Data Import
  • 27Users
  • 60video tutorial eng
  • 18Web Site: Behavioral Messages
  • 12Web Site: Forms
  • 13Web Site: Product Recommendations
  • 1Web Site: Smart Search

The most popular

  • Types of Product Recommendations – Glossary
  • Setting up filters
  • Introduction to behavioural messages
  • Configure a trigger
  • Introduction to Recommendations
© 2025 BLENDEE S.r.l. - Via Museo Biscari, 16 Catania (CT) 95131
Blendee Marketing Operating System | P. iva 06016140870
Privacy Policy - Cookies Policy