Piwik Ecommerce for ZenCart version 1.5
Go here for the plugin that works on version 1.3.9 or older.
v 1.0.0 08.07.2012
Stephan Miller http://www.StephanMiller.com
A plugin that adds Piwik ecommerce tracking to Zen Cart as well as access to Piwik reports in the ZenCart reports menu. This plugin was written by Stephan Miller for a book on Piwik Analytics published by Packt Publishing.
Will be adding
tpl_footer.php in your current template tpl_shopping_cart_default.php in your current template tpl_checkout_success_default.php in your current template
- /includes/templates/YOUR_TEMPLATE/common/tpl_footer_piwik.php
- /includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php
- /includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php
- /functions/includes/piwikecommerce.php
- /admin/includes/piwikecommerce.php
- /admin/includes/extra_datafiles/piwikecommerce.php
- /admin/includes/languages/english/extra_definitions/piwikecommerce.php
Yes (creates new records into configuration_group, configuration tables and new admin pages)
Installation of this contribution is done at your own risk. Backup your ZenCart database and any and all applicable files before proceeding.
- supports e-commerce tracking
- admin menu to enter Piwik details
- admin|reports menu to view Piwik stats
-
Go to Admin->Tools->Install SQL Patches and install install.sql by copy and pasting the contents of the file into the form there.
-
Upload catalog/includes/functions/extra_functions/piwikecommerce.php to the /includes/functions/extra_functions/ folder of your ZenCart installation.
-
Upload the contents of the catalog/admin folder to the admin folder of your ZenCart installation. Note that if you renamed your admin folder for security reasons, it will not be named "admin" now.
-
If you are using a default footer file for your current template, you can upload catalog/includes/templates/YOUR_TEMPLATE/common/tpl_footer.php to the folder of your current template to replace the tpl_footer.php file in your template's common folder. If you are using a modified tpl_footer.php file in your template, you must copy the code between and at the bottom of the catalog/includes/templates/YOUR_TEMPLATE/common/tpl_footer.php file to the bottom of your current tpl_footer.php file.
-
If you are using a default tpl_shopping_cart_default.php template file for your current template, you can upload catalog/includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php to the folder of your current template to replace the tpl_shopping_cart_default.php file in your template's common folder. If you are using a modified tpl_shopping_cart_default.php file in your template, you must copy the code between and at the top of the catalog/includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php file to the top of your current tpl_shopping_cart_default.php file, right after the set of comments at the top of the file.
-
If you are using a default tpl_checkout_success_default.php template file for your current template, you can upload catalog/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php to the folder of your current template to replace the tpl_checkout_success_default.php file in your template's common folder. If you are using a modified tpl_shopping_cart_default.php file in your template, you must copy the code between and at the top of the catalog/includes/templates/YOUR_TEMPLATE/templates/checkout_success_default.php file to the top of your current tpl_shopping_cart_default.php file, right after the set of comments at the top of the file.
-
Add your Piwik credentials at Admin->Configuration->Piwik Analytics Configuration
-
View your Piwik reports dashboard at Admin->Reports->Piwik Analytics Reports
Because of the embedded widget and cross domain issues, there may be two vertical scroll bars. I thought of creating a shim page to fix it, but this is still an ugly fix.