Skip to content
Browse files

Convert 1.39 to 1.5

  • Loading branch information...
1 parent 1bb4b91 commit cf46d90447a6f867c8fba8654f687242aba45d30 @eristoddle committed Aug 7, 2012
View
1 .gitignore
@@ -0,0 +1 @@
+/nbproject/private/
View
17 README.md
@@ -1,6 +1,8 @@
Name
====
-Piwik Ecommerce for ZenCart version 1.3.9 and lower
+Piwik Ecommerce for ZenCart version 1.5
+
+Go [here](https://github.com/eristoddle/Piwik-Ecommerce-for-Zen-Cart) for the plugin that works on version 1.3.9 or older.
Version Date
============
@@ -23,21 +25,22 @@ Affected files
Changed files
-------------
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
New files
---------
- /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/boxes/extra_boxes/PiwikEcommerce_tools_dhtml.php
-- /admin/includes/extra_datafiles/PiwikEcommerce.php
-- /admin/includes/languages/english/extra_definitions/PiwikEcommerce.php
+- /functions/includes/piwikecommerce.php
+- /admin/includes/piwikecommerce.php
+- /admin/includes/extra_datafiles/piwikecommerce.php
+- /admin/includes/languages/english/extra_definitions/piwikecommerce.php
Affects DB
==========
-Yes (creates new records into configuration_group and configuration tables)
+Yes (creates new records into configuration_group, configuration tables and new admin pages)
DISCLAIMER
==========
View
17 README.txt
@@ -1,6 +1,8 @@
Name
====
-Piwik Ecommerce for ZenCart version 1.3.9 and lower
+Piwik Ecommerce for ZenCart version 1.5
+
+Go [here](https://github.com/eristoddle/Piwik-Ecommerce-for-Zen-Cart) for the plugin that works on version 1.3.9 or older.
Version Date
============
@@ -23,21 +25,22 @@ Affected files
Changed files
-------------
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
New files
---------
- /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/boxes/extra_boxes/PiwikEcommerce_tools_dhtml.php
-- /admin/includes/extra_datafiles/PiwikEcommerce.php
-- /admin/includes/languages/english/extra_definitions/PiwikEcommerce.php
+- /functions/includes/piwikecommerce.php
+- /admin/includes/piwikecommerce.php
+- /admin/includes/extra_datafiles/piwikecommerce.php
+- /admin/includes/languages/english/extra_definitions/piwikecommerce.php
Affects DB
==========
-Yes (creates new records into configuration_group and configuration tables)
+Yes (creates new records into configuration_group, configuration tables and new admin pages)
DISCLAIMER
==========
View
15 catalog/admin/includes/boxes/extra_boxes/piwikecommerce_reports_dhtml.php
@@ -1,15 +0,0 @@
-<?php
-/**
- * @package piwik ecommerce
- * @copyright Copyright 2003-2007 Zen Cart Development Team
- * @copyright Portions Copyright 2003 osCommerce
- * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
- * @version $Id: piwikecommerce_reports_dhtml.php eristoddle $
- */
-
-if (!defined('IS_ADMIN_FLAG')) {
- die('Illegal Access');
-}
-
-$za_contents[] = array('text' => BOX_REPORTS_PIWIKECOMMERCE, 'link' => zen_href_link(FILENAME_PIWIKECOMMERCE, '', 'NONSSL'));
-?>
View
4 install.sql
@@ -11,4 +11,6 @@ INSERT INTO configuration (configuration_id, configuration_title, configuration_
(NULL, 'Piwik Site ID', 'PIWIK_ID', 1, 'Enter your Piwik Analytics site id.', @configuration_group_id, 1, NOW(), NULL, NULL),
(NULL, 'Piwik Report Period', 'PIWIK_REPORT_PERIOD', 'day', 'Enter the desired report period for your report. Options:day,week,month,year', @configuration_group_id, 1, NOW(), NULL, NULL),
(NULL, 'Piwik Report Date', 'PIWIK_REPORT_DATE', 'yesterday', 'Enter the desired report day for your report. Options:today,yesterday', @configuration_group_id, 1, NOW(), NULL, NULL),
-(NULL, 'Piwik Token Auth', 'PIWIK_TOKEN_AUTH', '', 'Enter your Piwik Analytics token_auth. You could create a new user that has view access to this site and use that token_auth.', @configuration_group_id, 1, NOW(), NULL, NULL);
+(NULL, 'Piwik Token Auth', 'PIWIK_TOKEN_AUTH', '', 'Enter your Piwik Analytics token_auth. You could create a new user that has view access to this site and use that token_auth.', @configuration_group_id, 1, NOW(), NULL, NULL);
+
+INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('PiwikEcommerce', 'BOX_REPORTS_PIWIKECOMMERCE', 'FILENAME_PIWIKECOMMERCE', '', 'reports', 'Y', 999);
View
7 nbproject/project.properties
@@ -0,0 +1,7 @@
+include.path=${php.global.include.path}
+php.version=PHP_53
+source.encoding=UTF-8
+src.dir=.
+tags.asp=false
+tags.short=true
+web.root=.
View
9 nbproject/project.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.php.project</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/php-project/1">
+ <name>Piwik-Ecommerce-for-Zen-Cart-1.5</name>
+ </data>
+ </configuration>
+</project>
View
4 uninstall.sql
@@ -1,4 +1,6 @@
SET @configuration_group_id=0;
SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title= 'Piwik Analytics Configuration' LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
-DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
+DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
+
+DELETE FROM admin_pages WHERE page_key = 'PiwikEcommerce';

0 comments on commit cf46d90

Please sign in to comment.
Something went wrong with that request. Please try again.