Optimiseweb_Getclicky - Version 0.2.2

Version Notes

* Tidy up

Download this release

Release Info

Developer Kathir Vel
Extension Optimiseweb_Getclicky
Version 0.2.2
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.2

app/code/community/Optimiseweb/Getclicky/Block/Adminhtml/System/Config/Fieldset/Hint.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Optimiseweb Getclicky Block Adminhtml System Config Fieldset Hint
5
+ *
6
+ * @package Optimiseweb_Getclicky
7
+ * @author Kathir Vel (sid@optimiseweb.co.uk)
8
+ * @copyright Copyright (c) 2014 Optimise Web
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+ class Optimiseweb_Getclicky_Block_Adminhtml_System_Config_Fieldset_Hint extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
12
+ {
13
+
14
+ protected $_template = 'optimiseweb/getclicky/system/config/fieldset/hint.phtml';
15
+
16
+ /**
17
+ * Render fieldset html
18
+ *
19
+ * @param Varien_Data_Form_Element_Abstract $element
20
+ * @return string
21
+ */
22
+ public function render(Varien_Data_Form_Element_Abstract $element)
23
+ {
24
+ return $this->toHtml();
25
+ }
26
+
27
+ public function getModuleName()
28
+ {
29
+ return 'Clicky Analytics for Magento';
30
+ }
31
+
32
+ public function getModuleVersion()
33
+ {
34
+ return (string) Mage::getConfig()->getNode('modules/Optimiseweb_Getclicky/version');
35
+ }
36
+
37
+ public function getOptimisewebGetclickyVersion()
38
+ {
39
+ return $this->getModuleVersion();
40
+ }
41
+
42
+ public function getCheckExtensions()
43
+ {
44
+ return array();
45
+ }
46
+
47
+ private function getAdminEmail()
48
+ {
49
+ return Mage::getSingleton('admin/session')->getUser()->getEmail();
50
+ }
51
+
52
+ public function getOptimiseWebUrl()
53
+ {
54
+ $url = 'https://optimiseweb.co.uk?';
55
+ $url .= 'utm_source=Magento_Extension&utm_medium=Extension_Settings&utm_campaign=Optimiseweb_Getclicky';
56
+ return $url;
57
+ }
58
+
59
+ public function getOptimiseWebEmailLink()
60
+ {
61
+ $email = 'info@optimiseweb.co.uk';
62
+ $emailLink = 'mailto:' . $email;
63
+ return $emailLink;
64
+ }
65
+
66
+ public function getKathirVelUrl()
67
+ {
68
+ $url = 'http://www.kathirvel.com?';
69
+ $url .= 'utm_source=Magento_Extension&utm_medium=Extension_Settings&utm_campaign=Optimiseweb_Getclicky';
70
+ return $url;
71
+ }
72
+
73
+ public function getHelpDeskUrl()
74
+ {
75
+ $url = 'https://optimiseweb.co.uk/magento-extension-support/?';
76
+ $url .= $this->getPxParams();
77
+ return $url;
78
+ }
79
+
80
+ public function getPxUrl()
81
+ {
82
+ $url = 'https://optimiseweb.co.uk/magento-connect/assets/logo/optimiseweb.php?';
83
+ $url .= $this->getPxParams();
84
+ return $url;
85
+ }
86
+
87
+ public function getPxParams()
88
+ {
89
+ $v = $this->getModuleVersion();
90
+ $ext = 'Optimiseweb_Getclicky_' . $v;
91
+ $modulesArray = (array) Mage::getConfig()->getNode('modules')->children();
92
+ $aux = (array_key_exists('Enterprise_Enterprise', $modulesArray)) ? 'EE' : 'CE';
93
+ $mageVersion = Mage::getVersion();
94
+ $mage = 'Magento_' . $aux . '_' . $mageVersion;
95
+ $hash = md5($ext . '_' . $mage . '_' . $ext);
96
+ $url = Mage::getBaseUrl();
97
+ $email = $this->getAdminEmail();
98
+ return 'extension=' . $ext . '&magento=' . $mage . '&url=' . $url . '&email=' . $email . '&ctrl=' . $hash;
99
+ }
100
+
101
+ }
app/code/community/Optimiseweb/Getclicky/doc/Readme.html ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Clicky (new name for GetClicky) is a real time web analytics service. This extension is a Clicky integration for the Magento eCommerce platform. Optimise Web's Clicky integration extension allows store owners to enable Clicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to Clicky.
2
+
3
+ <br />
4
+ <br />
5
+ <h3>
6
+ <b>
7
+ <u>Features</u>
8
+ </b>
9
+ </h3>
10
+ <p>
11
+ <b>Latest Clicky Code</b>
12
+ <br />
13
+ - Uses up-to-date Clicky code.<br />
14
+ - Supports 'https' (secure URLs).<br />
15
+ - Switch between 'Default', 'Asynchronous', and 'Non-Javascript' from the system configuration panel.<br />
16
+ <br />
17
+ <b>Fully Configurable</b>
18
+ <br />
19
+ - Using the system configuration panel. <b>System &gt; Configuration &gt; Optimise Web (tab) &gt; Clicky Integration</b><br />
20
+ <br />
21
+ </p>
22
+ <h3>FAQs</h3>
23
+ <p><b>1. Why am I not seeing the system settings? Why am I getting a 404 error?</b></p>
24
+ <p>As with the installation of all Magento modules, please clear the cache folders and log out of the admin area and log back in. Please also flush your CSS and JS caches.</p>
25
+ <p><b>2. Should I backup Magento's files and database?</b></p>
26
+ <p>Yes. Please make it a point to backup your files and database before installing or upgrading any Magento module.</p>
27
+ <p><b>3. Do you offer support for this extension?</b></p>
28
+ <p>This is a free extension and support will be limited. Please write to us and we'll do our best to help you out.</p>
29
+
30
+ <h3><b><u>Important:</u></b></h3>
31
+
32
+ <p>To be able to develop the module further and provide better support, we capture your Magento version, module version, admin URL and admin email address when you access the admin &gt; module settings page. We do not share this data with anyone. We do not use this data to send you marketing communication. We do this purely for support and statistical purposes.</p>
33
+
34
+ <p>If you do not agree to this, please do not install the module. Or, write to us to request a bespoke version of the module.</p>
app/code/community/Optimiseweb/Getclicky/etc/adminhtml.xml CHANGED
@@ -8,6 +8,26 @@
8
  */
9
  -->
10
  <config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  <acl>
12
  <resources>
13
  <all>
8
  */
9
  -->
10
  <config>
11
+ <menu>
12
+ <optimiseweball translate="title" module="getclicky">
13
+ <title>Optimise Web</title>
14
+ <sort_order>71</sort_order>
15
+ <children>
16
+ <getclicky translate="title" module="getclicky">
17
+ <title>GetClicky Integration</title>
18
+ <sort_order>5</sort_order>
19
+ <action>adminhtml/system_config/edit/section/optimisewebgetclickyconfig</action>
20
+ <depends>
21
+ <config>optimisewebgetclickyconfig/menu/getclicky_enabled</config>
22
+ </depends>
23
+ </getclicky>
24
+ </children>
25
+ <depends>
26
+ <config>optimisewebgetclickyconfig/menu/optimiseweball_enabled</config>
27
+ </depends>
28
+ </optimiseweball>
29
+ </menu>
30
+
31
  <acl>
32
  <resources>
33
  <all>
app/code/community/Optimiseweb/Getclicky/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
 
12
  <modules>
13
  <Optimiseweb_Getclicky>
14
- <version>0.2.0</version>
15
  </Optimiseweb_Getclicky>
16
  </modules>
17
 
@@ -39,20 +39,6 @@
39
 
40
  <adminhtml>
41
 
42
- <menu>
43
- <optimiseweball translate="title" module="getclicky">
44
- <title>Optimise Web</title>
45
- <sort_order>71</sort_order>
46
- <children>
47
- <getclicky translate="title" module="getclicky">
48
- <title>GetClicky Integration</title>
49
- <sort_order>5</sort_order>
50
- <action>adminhtml/system_config/edit/section/optimisewebgetclickyconfig</action>
51
- </getclicky>
52
- </children>
53
- </optimiseweball>
54
- </menu>
55
-
56
  <translate>
57
  <modules>
58
  <Optimiseweb_Getclicky>
@@ -113,6 +99,10 @@
113
  <goal_type>dynamic</goal_type>
114
  <goal_name>Cart Page</goal_name>
115
  </goal_cart_page>
 
 
 
 
116
  </optimisewebgetclickyconfig>
117
  </default>
118
 
11
 
12
  <modules>
13
  <Optimiseweb_Getclicky>
14
+ <version>0.2.2</version>
15
  </Optimiseweb_Getclicky>
16
  </modules>
17
 
39
 
40
  <adminhtml>
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  <translate>
43
  <modules>
44
  <Optimiseweb_Getclicky>
99
  <goal_type>dynamic</goal_type>
100
  <goal_name>Cart Page</goal_name>
101
  </goal_cart_page>
102
+ <menu>
103
+ <optimiseweball_enabled>1</optimiseweball_enabled>
104
+ <getclicky_enabled>1</getclicky_enabled>
105
+ </menu>
106
  </optimisewebgetclickyconfig>
107
  </default>
108
 
app/code/community/Optimiseweb/Getclicky/etc/system.xml CHANGED
@@ -29,27 +29,13 @@
29
 
30
  <groups>
31
 
32
- <getclickyabout translate="label comment">
33
- <label>About - GetClicky Integration by Optimise Web</label>
34
- <comment><![CDATA[This Magento extension is developed by <a href="http://optimiseweb.co.uk/" target="_optimiseweb" style="text-decoration: none;">Optimise Web</a>. If you do not have a GetClicky account, you can sign up here: <a href="http://getclicky.com/240502" target="_getclicky" style="text-decoration: none;">GetClicky</a><script type="text/javascript">$('optimisewebgetclickyconfig_getclickyabout').hide();</script>]]>
35
- </comment>
36
- <sort_order>1</sort_order>
37
  <show_in_default>1</show_in_default>
38
  <show_in_website>1</show_in_website>
39
  <show_in_store>1</show_in_store>
40
- <fields>
41
- <ignored>
42
- <label></label>
43
- <comment><![CDATA[<div id="J5BhDU3P26384w8v"></div><script type="text/javascript">$('J5BhDU3P26384w8v').up('tr').remove();</script>]]>
44
- </comment>
45
- <frontend_type>text</frontend_type>
46
- <sort_order>1</sort_order>
47
- <show_in_default>1</show_in_default>
48
- <show_in_website>1</show_in_website>
49
- <show_in_store>1</show_in_store>
50
- </ignored>
51
- </fields>
52
- </getclickyabout>
53
 
54
  <getclickygeneral translate="label comment">
55
  <label>General Settings</label>
@@ -281,6 +267,42 @@
281
  </fields>
282
  </goal_cart_page>
283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  </groups>
285
 
286
  </optimisewebgetclickyconfig>
29
 
30
  <groups>
31
 
32
+ <hint>
33
+ <frontend_model>getclicky/adminhtml_system_config_fieldset_hint</frontend_model>
34
+ <sort_order>0</sort_order>
 
 
35
  <show_in_default>1</show_in_default>
36
  <show_in_website>1</show_in_website>
37
  <show_in_store>1</show_in_store>
38
+ </hint>
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  <getclickygeneral translate="label comment">
41
  <label>General Settings</label>
267
  </fields>
268
  </goal_cart_page>
269
 
270
+ <menu translate="label comment" module="getclicky">
271
+ <label>Admin Menu Control</label>
272
+ <comment>
273
+ <![CDATA[
274
+ <div class="notice-msg" style="background-image: none!important; padding: 5px;">
275
+ <p style="margin-bottom: 0;">The 'Optimise Web' menu group acts as a parent menu item for the various modules developed by Optimise Web. Use the following settings if you do not wish to see the link in the admin menu and would rather manually visit the System Config.</p>
276
+ </div>
277
+ ]]>
278
+ </comment>
279
+ <frontend_type>text</frontend_type>
280
+ <sort_order>999</sort_order>
281
+ <show_in_default>1</show_in_default>
282
+ <show_in_website>1</show_in_website>
283
+ <show_in_store>1</show_in_store>
284
+ <fields>
285
+ <optimiseweball_enabled translate="label tooltip comment" module="getclicky">
286
+ <label>Enable the 'Optimise Web' Admin menu group?</label>
287
+ <frontend_type>select</frontend_type>
288
+ <source_model>adminhtml/system_config_source_yesno</source_model>
289
+ <sort_order>1</sort_order>
290
+ <show_in_default>1</show_in_default>
291
+ <show_in_website>1</show_in_website>
292
+ <show_in_store>1</show_in_store>
293
+ </optimiseweball_enabled>
294
+ <getclicky_enabled translate="label tooltip comment" module="getclicky">
295
+ <label>Enable the 'GetClicky Integration' link from the Admin menu?</label>
296
+ <frontend_type>select</frontend_type>
297
+ <source_model>adminhtml/system_config_source_yesno</source_model>
298
+ <sort_order>1</sort_order>
299
+ <show_in_default>1</show_in_default>
300
+ <show_in_website>1</show_in_website>
301
+ <show_in_store>1</show_in_store>
302
+ </getclicky_enabled>
303
+ </fields>
304
+ </menu>
305
+
306
  </groups>
307
 
308
  </optimisewebgetclickyconfig>
app/design/adminhtml/default/default/template/optimiseweb/getclicky/system/config/fieldset/hint.phtml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="optimiseweb-system-config-fieldset-hint">
2
+
3
+ <a target="_blank" href="<?php echo $this->getOptimiseWebUrl(); ?>"><img src="<?php echo $this->getPxUrl(); ?>" /></a>
4
+
5
+ <h4>
6
+ <strong style="color:#ea7601;"><?php echo $this->getModuleName(); ?> v<?php echo $this->getModuleVersion(); ?></strong> by <a target="_blank" href="<?php echo $this->getOptimiseWebUrl(); ?>"><strong>Optimise Web</strong></a>
7
+ </h4>
8
+
9
+ <h4>
10
+ If you do not have a GetClicky account, you can sign up by visiting this link: <a href="http://clicky.com/240502" target="_getclicky"><strong>Clicky Website</strong></a>
11
+ </h4>
12
+
13
+ <p>
14
+ <a target="_blank" href="<?php echo $this->getOptimiseWebUrl(); ?>"><strong>Optimise Web</strong></a> is a <strong>Full Service Digital Agency</strong> from Edinburgh (Scotland, UK).
15
+ The author of this extension, <a target="_blank" href="<?php echo $this->getKathirVelUrl(); ?>"><strong>Kathir 'Sid' Vel</strong></a>, is our eCommerce and Digital Marketing specialist.
16
+ </p>
17
+
18
+ <p>
19
+ Need assistance? <a target="_blank" href="<?php echo $this->getHelpDeskUrl(); ?>">Submit a ticket</a>.
20
+ Got feedback? <a target="_blank" href="<?php echo $this->getOptimiseWebEmailLink(); ?>">Email us</a>.
21
+ <!--Subscribe to our newsletter? <a target="_blank" href="<?php echo $this->getOptimiseWebUrl(); ?>">Visit our website</a>.-->
22
+ </p>
23
+
24
+ </div>
25
+
26
+ <style>
27
+ .optimiseweb-system-config-fieldset-hint {
28
+ background: #E7EFEF;
29
+ border: 1px solid #CCCCCC;
30
+ margin-bottom: 10px;
31
+ padding: 11px 0 0 10px;
32
+ }
33
+ </style>
package.xml CHANGED
@@ -1,20 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Optimiseweb_Getclicky</name>
4
- <version>0.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>GetClicky is a real time web analytics service. This extension is a GetClicky integration for the Magento eCommerce platform. Optimise Web's GetClicky integration extension allows store owners to enable GetClicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to GetClicky.</summary>
10
- <description>GetClicky is a real time web analytics service. This extension is a GetClicky integration for the Magento eCommerce platform. Optimise Web's GetClicky integration extension allows store owners to enable GetClicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to GetClicky.&#xD;
11
  &#xD;
12
- This extension comes with a complete configuration screen where all options can be configured.</description>
13
- <notes>* Code tidy and formatting</notes>
14
  <authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
15
- <date>2014-02-03</date>
16
- <time>00:56:59</time>
17
- <contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Getclicky"><dir name="Helper"><file name="Data.php" hash="d29f1f6d4a5b1fafc34d28045c29c8cf"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Goaltypes.php" hash="5b7950a5fa8d1a3bbcffffcc893ef2e5"/><file name="Trackertypes.php" hash="6b4176d95f36e42c36359700c8871346"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="a83159550630209c438440a977c9b7a1"/><file name="config.xml" hash="6ac1aa5e4564c3c44d969e0cba680d72"/><file name="system.xml" hash="367739ab81ca5e37864b875c1c36d65d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Getclicky.xml" hash="d1ff1a0b215e59e7539a2e3dad5e6a31"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="optimiseweb_getclicky.xml" hash="38a7765daf93e43b56d38c28df70b8c0"/></dir><dir name="template"><dir name="optimiseweb"><dir name="getclicky"><dir name="goals"><file name="cart-page.phtml" hash="52958b2be129cb9ded3ddb12d946b3b9"/><file name="checkout-onepage-entry.phtml" hash="37710cd4795dd3aa2650f70132db3640"/><file name="checkout-onepage-success.phtml" hash="c295c4f9a765ad0a478ef47c6e3a8a9d"/></dir><file name="tracker.phtml" hash="9a54233c8b7f45e9c63b9a417cdcd87b"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Getclicky.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Optimiseweb_Getclicky</name>
4
+ <version>0.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Clicky is a real time web analytics service. This extension is a Clicky integration for the Magento eCommerce platform. Optimise Web's Clicky integration extension allows store owners to enable Clicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to Clicky.</summary>
10
+ <description>Clicky is a real time web analytics service. This extension is a Clicky integration for the Magento eCommerce platform. Optimise Web's Clicky integration extension allows store owners to enable Clicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to Clicky.&#xD;
11
  &#xD;
12
+ This extension comes with a complete configuration screen where all options can be configured.</description>
13
+ <notes>* Tidy up</notes>
14
  <authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
15
+ <date>2014-12-15</date>
16
+ <time>12:28:48</time>
17
+ <contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Getclicky"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="f82c0983977df868fa4df36c2d360d8e"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d29f1f6d4a5b1fafc34d28045c29c8cf"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Goaltypes.php" hash="5b7950a5fa8d1a3bbcffffcc893ef2e5"/><file name="Trackertypes.php" hash="6b4176d95f36e42c36359700c8871346"/></dir></dir></dir></dir><dir name="doc"><file name="Readme.html" hash="f051e90ee2d887494a34be3cd3219e4a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="72e3bef77c48bbb68fdfe75a7a82a5e5"/><file name="config.xml" hash="d4b31b2b8b3fa7aec5dd6ba68c365bbb"/><file name="system.xml" hash="39e5d4850a2e576e380da613f9ced149"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Getclicky.xml" hash="d1ff1a0b215e59e7539a2e3dad5e6a31"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="optimiseweb_getclicky.xml" hash="38a7765daf93e43b56d38c28df70b8c0"/></dir><dir name="template"><dir name="optimiseweb"><dir name="getclicky"><dir name="goals"><file name="cart-page.phtml" hash="52958b2be129cb9ded3ddb12d946b3b9"/><file name="checkout-onepage-entry.phtml" hash="37710cd4795dd3aa2650f70132db3640"/><file name="checkout-onepage-success.phtml" hash="c295c4f9a765ad0a478ef47c6e3a8a9d"/></dir><file name="tracker.phtml" hash="9a54233c8b7f45e9c63b9a417cdcd87b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="optimiseweb"><dir name="getclicky"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="1c14f930426064cfbb0fb01c05609aa2"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Getclicky.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>