Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert 1.39 to 1.5
  • Loading branch information
eristoddle committed Aug 7, 2012
1 parent 1bb4b91 commit cf46d90
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/nbproject/private/
17 changes: 10 additions & 7 deletions 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
============
Expand All @@ -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
==========
Expand Down
17 changes: 10 additions & 7 deletions 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
============
Expand All @@ -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
==========
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion install.sql
Expand Up @@ -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);
7 changes: 7 additions & 0 deletions 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=.
9 changes: 9 additions & 0 deletions 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>
4 changes: 3 additions & 1 deletion 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.