Numerno_Visilabs - Version 1.0.5

Version Notes

Version 1.0.5
* Minor bug fixes

Build Date: July 29, 2016

Download this release

Release Info

Developer Numerno
Extension Numerno_Visilabs
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/local/Numerno/Visilabs/Block/Global.php DELETED
@@ -1,72 +0,0 @@
1
- <?php
2
- /**
3
- * NOTICE OF LICENSE
4
- *
5
- * This source file is subject to the NUMERNO VISILABS EXTENSION FOR MAGENTO® License, which extends the
6
- * Open Software License (OSL 3.0).
7
- * The Visilabs Extension for Magento® License is available at this URL: http://numerno.com/licenses/visilabs-ce.txt
8
- * The Open Software License is available at this URL: http://opensource.org/licenses/osl-3.0.php
9
- *
10
- * DISCLAIMER
11
- *
12
- * By adding to, editing, or in any way modifying this code, Numerno is not held liable for any inconsistencies or
13
- * abnormalities in the behaviour of this code. By adding to, editing, or in any way modifying this code, the Licensee
14
- * terminates any agreement of support offered by Numerno, outlined in the provided Visilabs Extension for Magento®
15
- * License. Upon discovery of modified code in the process of support, the Licensee is still held accountable for any
16
- * and all billable time Numerno spent during the support process. Numerno does not guarantee compatibility with
17
- * any other Magento® extension. Numerno is not responsbile for any inconsistencies or abnormalities in the
18
- * behaviour of this code if caused by other Magento® extension.
19
- *
20
- * If you did not receive a copy of the license, please send an email to info@numerno.com or call +90-212-223-5093,
21
- * so we can send you a copy immediately.
22
- *
23
- * @category [Numerno]
24
- * @package [Numerno_Visilabs]
25
- * @copyright Copyright (c) 2016. Numerno Bilisim Hiz. Tic. Ltd. Sti. (http://numerno.com/)
26
- * @license http://numerno.com/licenses/visilabs-ce.txt Numerno Visilabs Extension for Magento® License
27
- */
28
-
29
- /**
30
- * Visilabs global script
31
- *
32
- * @category Numerno
33
- * @package Numerno_Visilabs
34
- * @author Numerno Bilisim Hiz. Tic. Ltd. Sti. <info@numerno.com>
35
- */
36
- class Numerno_Visilabs_Block_Global extends Mage_Core_Block_Template
37
- {
38
- /**
39
- * Visilabs Static Host URL
40
- */
41
- const VISILABS_URL = 'vsh.visilabs.net';
42
-
43
- /**
44
- * Visilabs Site Id
45
- *
46
- * @return string
47
- */
48
- public function getSiteId()
49
- {
50
- return Mage::getStoreConfig('visilabs/general/sid');
51
- }
52
-
53
- /**
54
- * Visilabs Organization Id
55
- *
56
- * @return string
57
- */
58
- public function getOrganizationId()
59
- {
60
- return Mage::getStoreConfig('visilabs/general/oid');
61
- }
62
-
63
- /**
64
- * Visilabs URL
65
- *
66
- * @return string
67
- */
68
- public function getVisilabsUrl()
69
- {
70
- return self::VISILABS_URL;
71
- }
72
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Numerno/Visilabs/Block/Tagging.php CHANGED
@@ -35,6 +35,46 @@
35
  */
36
  class Numerno_Visilabs_Block_Tagging extends Mage_Core_Block_Template
37
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  /**
39
  * Get current Visilabs parameters from customer session
40
  *
35
  */
36
  class Numerno_Visilabs_Block_Tagging extends Mage_Core_Block_Template
37
  {
38
+ /**
39
+ * Visilabs Static Host URL
40
+ */
41
+ const VISILABS_URL = 'vsh.visilabs.net';
42
+
43
+ public function isTaggingEnabled()
44
+ {
45
+ return Mage::helper('visilabs')->isTaggingEnabled();
46
+ }
47
+
48
+ /**
49
+ * Visilabs Site Id
50
+ *
51
+ * @return string
52
+ */
53
+ public function getSiteId()
54
+ {
55
+ return Mage::getStoreConfig('visilabs/general/sid');
56
+ }
57
+
58
+ /**
59
+ * Visilabs Organization Id
60
+ *
61
+ * @return string
62
+ */
63
+ public function getOrganizationId()
64
+ {
65
+ return Mage::getStoreConfig('visilabs/general/oid');
66
+ }
67
+
68
+ /**
69
+ * Visilabs URL
70
+ *
71
+ * @return string
72
+ */
73
+ public function getVisilabsUrl()
74
+ {
75
+ return self::VISILABS_URL;
76
+ }
77
+
78
  /**
79
  * Get current Visilabs parameters from customer session
80
  *
app/code/local/Numerno/Visilabs/etc/config.xml CHANGED
@@ -30,7 +30,7 @@
30
  <config>
31
  <modules>
32
  <Numerno_Visilabs>
33
- <version>1.0.4</version>
34
  </Numerno_Visilabs>
35
  </modules>
36
  <global>
@@ -172,7 +172,6 @@
172
  </general>
173
  <catalog>
174
  <enabled>0</enabled>
175
- <brand>manufacturer</brand>
176
  </catalog>
177
  <search>
178
  <enabled>0</enabled>
30
  <config>
31
  <modules>
32
  <Numerno_Visilabs>
33
+ <version>1.0.5</version>
34
  </Numerno_Visilabs>
35
  </modules>
36
  <global>
172
  </general>
173
  <catalog>
174
  <enabled>0</enabled>
 
175
  </catalog>
176
  <search>
177
  <enabled>0</enabled>
app/design/frontend/base/default/layout/visilabs.xml CHANGED
@@ -29,9 +29,6 @@
29
 
30
  <layout version="1.0.0">
31
  <default>
32
- <reference name="head" before="-">
33
- <block type="visilabs/global" name="visilabs.global" template="visilabs/global.phtml"/>
34
- </reference>
35
  <reference name="content" before="-">
36
  <block type="visilabs/tagging" name="visilabs.tagging" template="visilabs/tagging.phtml" />
37
  </reference>
29
 
30
  <layout version="1.0.0">
31
  <default>
 
 
 
32
  <reference name="content" before="-">
33
  <block type="visilabs/tagging" name="visilabs.tagging" template="visilabs/tagging.phtml" />
34
  </reference>
app/design/frontend/base/default/template/visilabs/global.phtml DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
- /**
3
- * NOTICE OF LICENSE
4
- *
5
- * This source file is subject to the NUMERNO VISILABS EXTENSION FOR MAGENTO® License, which extends the
6
- * Open Software License (OSL 3.0).
7
- * The Visilabs Extension for Magento® License is available at this URL: http://numerno.com/licenses/visilabs-ce.txt
8
- * The Open Software License is available at this URL: http://opensource.org/licenses/osl-3.0.php
9
- *
10
- * DISCLAIMER
11
- *
12
- * By adding to, editing, or in any way modifying this code, Numerno is not held liable for any inconsistencies or
13
- * abnormalities in the behaviour of this code. By adding to, editing, or in any way modifying this code, the Licensee
14
- * terminates any agreement of support offered by Numerno, outlined in the provided Visilabs Extension for Magento®
15
- * License. Upon discovery of modified code in the process of support, the Licensee is still held accountable for any
16
- * and all billable time Numerno spent during the support process. Numerno does not guarantee compatibility with
17
- * any other Magento® extension. Numerno is not responsbile for any inconsistencies or abnormalities in the
18
- * behaviour of this code if caused by other Magento® extension.
19
- *
20
- * If you did not receive a copy of the license, please send an email to info@numerno.com or call +90-212-223-5093,
21
- * so we can send you a copy immediately.
22
- *
23
- * @category [Numerno]
24
- * @package [Numerno_Visilabs]
25
- * @copyright Copyright (c) 2016. Numerno Bilisim Hiz. Tic. Ltd. Sti. (http://numerno.com/)
26
- * @license http://numerno.com/licenses/visilabs-ce.txt Numerno Visilabs Extension for Magento® License
27
- */
28
-
29
- /**
30
- * @var $this Numerno_Visilabs_Block_Global
31
- */
32
- ?>
33
- <!-- Visilabs Global Script -->
34
- <script type="text/javascript">
35
- //<![CDATA[
36
- var l = (location.protocol.indexOf("https")==0?"https":"http") + "://<?php echo $this->getVisilabsUrl() ?>/Visilabs.js?sid=<?php echo $this->getSiteId() ?>&oid=<?php echo $this->getOrganizationId() ?>";
37
- var s = document.createElement("script");
38
- if(location.href.toString().indexOf("vldebug=true") > 0){l = (location.protocol.indexOf("https")==0?"https":"http") + "://<?php echo $this->getVisilabsUrl() ?>/Visilabs_Debug.js?sid=<?php echo $this->getSiteId() ?>&oid=<?php echo $this->getOrganizationId() ?>";}
39
- s.onload = function(){try{OnVisilabsLoaded();}catch(Ex){}};
40
- s.type = "text/javascript";
41
- s.src = l;
42
- document.getElementsByTagName("head")[0].appendChild(s);
43
- //]]>
44
- </script>
45
- <!-- Visilabs Global Script -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/visilabs/tagging.phtml CHANGED
@@ -29,8 +29,9 @@
29
  /**
30
  * @var $this Numerno_Visilabs_Block_Tagging
31
  */
32
-
33
  ?>
 
 
34
  <script type="text/javascript">
35
  //<![CDATA[
36
  function OnVisilabsLoaded() {
@@ -43,5 +44,14 @@
43
  VL.SuggestActions();
44
  <?php endif; ?>
45
  }
46
- //]]>
47
- </script>
 
 
 
 
 
 
 
 
 
29
  /**
30
  * @var $this Numerno_Visilabs_Block_Tagging
31
  */
 
32
  ?>
33
+ <?php if ($this->isTaggingEnabled()): ?>
34
+ <!-- Visilabs -->
35
  <script type="text/javascript">
36
  //<![CDATA[
37
  function OnVisilabsLoaded() {
44
  VL.SuggestActions();
45
  <?php endif; ?>
46
  }
47
+ var l = (location.protocol.indexOf("https")==0?"https":"http") + "://<?php echo $this->getVisilabsUrl() ?>/Visilabs.js?sid=<?php echo $this->getSiteId() ?>&oid=<?php echo $this->getOrganizationId() ?>";
48
+ var s = document.createElement("script");
49
+ if(location.href.toString().indexOf("vldebug=true") > 0){l = (location.protocol.indexOf("https")==0?"https":"http") + "://<?php echo $this->getVisilabsUrl() ?>/Visilabs_Debug.js?sid=<?php echo $this->getSiteId() ?>&oid=<?php echo $this->getOrganizationId() ?>";}
50
+ s.onload = function(){try{OnVisilabsLoaded();}catch(Ex){}};
51
+ s.type = "text/javascript";
52
+ s.src = l;
53
+ document.getElementsByTagName("head")[0].appendChild(s);
54
+ //]]>
55
+ </script>
56
+ <!-- Visilabs -->
57
+ <?php endif; ?>
package.xml CHANGED
@@ -1,21 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Numerno_Visilabs</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://numerno.com/licenses/visilabs-ce.txt">NUMERNO VISILABS MAGENTO EXTENSION</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Tagging Module for Visilabs omni-channel automation platform.</summary>
10
  <description>This extension allows you to easily tag your Magento pages according to Visilabs platform requirements.</description>
11
- <notes>Version 1.0.4&#xD;
12
  * Minor bug fixes&#xD;
13
  &#xD;
14
- Build Date: July 01, 2016</notes>
15
  <authors><author><name>Numerno</name><user>muhammedv</user><email>muhammedv@gmail.com</email></author></authors>
16
- <date>2016-07-01</date>
17
- <time>12:18:49</time>
18
- <contents><target name="magelocal"><dir><dir name="Numerno"><dir name="Visilabs"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Abstract.php" hash="4c7af53a079e5a663260be0ff0b1fabf"/><file name="Cart.php" hash="c1b1b0d80370601b550e55e1ca22f6f5"/><file name="Customer.php" hash="0c7bf34b5e8a8d572f83c7c0cd0545f9"/><file name="Order.php" hash="97efbfbb11117e59f6ef6004ff1ea066"/><file name="Product.php" hash="9d966d841aff07bc98cb2438a7795b10"/><dir name="Renderer"><file name="CountOut.php" hash="b1e433796749f88188e0cae2e3db0083"/><file name="CustomerAttributes.php" hash="dfc5b1b6dd9f1093ddb431ee97e2bf10"/><file name="OrderAttributes.php" hash="dfdc51d04d1e2861723e19791ee81b11"/><file name="QuoteAttributes.php" hash="1ca59ce2b0c2dfd3081cabf1e3564e75"/><file name="VisibleProductAttributes.php" hash="ebfafb525facd60d2c39021971f50f88"/></dir></dir></dir></dir></dir></dir><file name="Global.php" hash="3518d7e2b62beef806f8d911f57562de"/><file name="Tagging.php" hash="d473a0f9807ee7515c666945afd5ab3b"/></dir><dir name="Helper"><file name="Data.php" hash="4e3a3b1664fa5f01a568520fbe9077f4"/></dir><dir name="Model"><file name="Observer.php" hash="6f4203a1a89fe1c7cbf4cf6a29ee60da"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Attributes.php" hash="d4a86eca48669ab204e2712d6179ecd1"/><file name="Cache.php" hash="c3ae9f8f9a91338467450e3320697cb4"/></dir><dir name="Source"><file name="Attribute.php" hash="f0203b551b4d7a0d73b65384b1b0febe"/><file name="Cid.php" hash="0411e4fbc8ecadb39c5b46466074f57f"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c10ee6da116442d8d92a323ef6b8c880"/><file name="config.xml" hash="d2db52cbb7d37d8f20da0699c86c51f0"/><file name="system.xml" hash="0f11b888cb8fd5039cf93d9e93b505d7"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Numerno_Visilabs.xml" hash="1a6ac3a5313df928ab1baef32b0ba1b6"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="visilabs.xml" hash="223d3f3d179ef24d7ed2aac1e19a7e50"/></dir><dir name="template"><dir name="visilabs"><file name="global.phtml" hash="89c5292c15177296c68f10e7469879f8"/><file name="tagging.phtml" hash="bf689cc8abce131bbaf1cb09513113a1"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="visilabs"><file name="visilabs_logo.png" hash="8710ce7d462e1772c7fefc3804a7786c"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="tr_TR"><file name="Numerno_Visilabs.csv" hash="efa9d20b0edbd6e8dcc4484964eaffd8"/></dir><dir name="en_US"><file name="Numerno_Visilabs.csv" hash="3081b2d2964679759d366cdbecb0a323"/></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.3.0</min><max>6.9.9</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Numerno_Visilabs</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://numerno.com/licenses/visilabs-ce.txt">NUMERNO VISILABS MAGENTO EXTENSION</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Tagging Module for Visilabs omni-channel automation platform.</summary>
10
  <description>This extension allows you to easily tag your Magento pages according to Visilabs platform requirements.</description>
11
+ <notes>Version 1.0.5&#xD;
12
  * Minor bug fixes&#xD;
13
  &#xD;
14
+ Build Date: July 29, 2016</notes>
15
  <authors><author><name>Numerno</name><user>muhammedv</user><email>muhammedv@gmail.com</email></author></authors>
16
+ <date>2016-07-29</date>
17
+ <time>14:48:36</time>
18
+ <contents><target name="magelocal"><dir><dir name="Numerno"><dir name="Visilabs"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Abstract.php" hash="4c7af53a079e5a663260be0ff0b1fabf"/><file name="Cart.php" hash="c1b1b0d80370601b550e55e1ca22f6f5"/><file name="Customer.php" hash="0c7bf34b5e8a8d572f83c7c0cd0545f9"/><file name="Order.php" hash="97efbfbb11117e59f6ef6004ff1ea066"/><file name="Product.php" hash="9d966d841aff07bc98cb2438a7795b10"/><dir name="Renderer"><file name="CountOut.php" hash="b1e433796749f88188e0cae2e3db0083"/><file name="CustomerAttributes.php" hash="dfc5b1b6dd9f1093ddb431ee97e2bf10"/><file name="OrderAttributes.php" hash="dfdc51d04d1e2861723e19791ee81b11"/><file name="QuoteAttributes.php" hash="1ca59ce2b0c2dfd3081cabf1e3564e75"/><file name="VisibleProductAttributes.php" hash="ebfafb525facd60d2c39021971f50f88"/></dir></dir></dir></dir></dir></dir><file name="Tagging.php" hash="90096d129c3a37840b396fcf6a90c502"/></dir><dir name="Helper"><file name="Data.php" hash="4e3a3b1664fa5f01a568520fbe9077f4"/></dir><dir name="Model"><file name="Observer.php" hash="6f4203a1a89fe1c7cbf4cf6a29ee60da"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Attributes.php" hash="d4a86eca48669ab204e2712d6179ecd1"/><file name="Cache.php" hash="c3ae9f8f9a91338467450e3320697cb4"/></dir><dir name="Source"><file name="Attribute.php" hash="f0203b551b4d7a0d73b65384b1b0febe"/><file name="Cid.php" hash="0411e4fbc8ecadb39c5b46466074f57f"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c10ee6da116442d8d92a323ef6b8c880"/><file name="config.xml" hash="b6daf1a90e174d5afb5fc91b50d466a4"/><file name="system.xml" hash="0f11b888cb8fd5039cf93d9e93b505d7"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Numerno_Visilabs.xml" hash="1a6ac3a5313df928ab1baef32b0ba1b6"/></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="visilabs.xml" hash="f87b6bd66f1165b384cb64f344c75ae1"/></dir><dir name="template"><dir name="visilabs"><file name="tagging.phtml" hash="1be4a84522f4e96c7fcd699f4bba94f4"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="visilabs"><file name="visilabs_logo.png" hash="8710ce7d462e1772c7fefc3804a7786c"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="tr_TR"><file name="Numerno_Visilabs.csv" hash="efa9d20b0edbd6e8dcc4484964eaffd8"/></dir><dir name="en_US"><file name="Numerno_Visilabs.csv" hash="3081b2d2964679759d366cdbecb0a323"/></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.3.0</min><max>6.9.9</max></php></required></dependencies>
21
  </package>