QuBit_UniversalVariable - Version 1.3.1

Version Notes

The universal_variable was duplicated on window scope under window.uv and window.universal_variable.

You should only require an update if you are using other Qubit platform technologies.

Download this release

Release Info

Developer Callum Rogan
Extension QuBit_UniversalVariable
Version 1.3.1
Comparing to
See all releases


Code changes from version 1.3.0 to 1.3.1

app/code/community/QuBit/UniversalVariable/Model/Uv.php CHANGED
@@ -22,7 +22,7 @@ class QuBit_UniversalVariable_Model_Uv extends Varien_Object
22
  * @var string
23
  * @url http://tools.qubitproducts.com/uv/developers/specification
24
  */
25
- protected $_version = "1.3.0";
26
 
27
  protected function _construct()
28
  {
@@ -144,7 +144,6 @@ class QuBit_UniversalVariable_Model_Uv extends Varien_Object
144
  }
145
 
146
  $data['customer_group'] = Mage::getSingleton('customer/session')->getCustomerGroupId();
147
-
148
  $data['returning'] = $user->getId() ? true : false;
149
  $data['language'] = Mage::getStoreConfig('general/locale/code');
150
 
22
  * @var string
23
  * @url http://tools.qubitproducts.com/uv/developers/specification
24
  */
25
+ protected $_version = "1.2.2";
26
 
27
  protected function _construct()
28
  {
144
  }
145
 
146
  $data['customer_group'] = Mage::getSingleton('customer/session')->getCustomerGroupId();
 
147
  $data['returning'] = $user->getId() ? true : false;
148
  $data['language'] = Mage::getStoreConfig('general/locale/code');
149
 
app/code/community/QuBit/UniversalVariable/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <QuBit_UniversalVariable>
5
- <version>1.3.0</version>
6
  </QuBit_UniversalVariable>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <QuBit_UniversalVariable>
5
+ <version>1.0.23</version>
6
  </QuBit_UniversalVariable>
7
  </modules>
8
 
app/design/frontend/base/default/template/qubit/uv.phtml CHANGED
@@ -7,8 +7,10 @@ $uv = $helper->getUv();
7
 
8
  <?php if ($helper->uvEnabled()): ?>
9
  <script type="text/javascript">
10
- var uv = <?php echo $uv->getUvData(); ?>;
11
- window.universal_variable = $H(window.universal_variable || {}).merge(uv).toObject();
 
 
12
  </script>
13
  <?php endif;?>
14
  <?php if ($helper->opentagEnabled()): ?>
7
 
8
  <?php if ($helper->uvEnabled()): ?>
9
  <script type="text/javascript">
10
+ (function () {
11
+ var uvTemp = <?php echo $uv->getUvData(); ?>;
12
+ window.universal_variable = $H(window.universal_variable || {}).merge(uvTemp).toObject();
13
+ })();
14
  </script>
15
  <?php endif;?>
16
  <?php if ($helper->opentagEnabled()): ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>QuBit_UniversalVariable</name>
4
- <version>1.3.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Extension license name (OSL v3.0)</license>
7
  <channel>community</channel>
@@ -10,25 +10,13 @@
10
  <description>Universal Variable provides a standardised JSON structure for data relating to the user journey of your visitors, such user details, products viewed and transactions. Data contained in Universal Variable are pushed automatically to Qubit&#x2019;s platform and Opentag scripts.&#xD;
11
  &#xD;
12
  This extension plugs into your Magento installation and automatically inserts Universal Variable and Opentag to the top of your pages, taking away 99% of the development work of implementing Universal Variable on your site.</description>
13
- <notes>Refactored [Thanks firewizard]&#xD;
14
  &#xD;
15
- Magento version is now under a flag [security by obscurity]&#xD;
16
- &#xD;
17
- Options for hiding stock information, using real product IDs and the product id (database entry id) &#xD;
18
- &#xD;
19
- Flag to either user real User ID or a hashed version of it&#xD;
20
- &#xD;
21
- Product line_items&#xD;
22
- &#xD;
23
- Makes sure there is a valid delivery address to stop confirmation page error.&#xD;
24
- &#xD;
25
- user has_transacted&#xD;
26
- &#xD;
27
- updated branding from QuBit to Qubit</notes>
28
  <authors><author><name>Callum Rogan</name><user>rogy</user><email>callum@qubitproducts.com</email></author></authors>
29
- <date>2015-01-30</date>
30
- <time>12:40:44</time>
31
- <contents><target name="magecommunity"><dir name="QuBit"><dir name="UniversalVariable"><dir name="Helper"><file name="Data.php" hash="20ee1c7742638407ae4fc5d4119efb4e"/></dir><dir name="Model"><file name="Observer.php" hash="928c127e4468dc4316ce124dc5711c33"/><file name="Uv.php" hash="8b4ad81aff8955138de89a7ba03dfb23"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e708e1e94c34a3d0340b2c26d142b938"/><file name="config.xml" hash="5c9cb4ad71799e842799cba5130dc219"/><file name="system.xml" hash="d6f80fb4487a5e73de6886d2c909f90d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="QuBit_UniversalVariable.xml" hash="78415ff310ffbb380e1a95633caf4926"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="qubit"><file name="uv.phtml" hash="3b639da939fde63dafc3a8ff956e140d"/></dir></dir><dir name="layout"><dir name="qubit"><file name="uv.xml" hash="149b99e8bc633f90cef5700301e12590"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="QuBit_UniversalVariable.csv" hash="db8b84cbc643341df36f2ba05275ef71"/></dir></target></contents>
32
  <compatible/>
33
  <dependencies><required><php><min>5.1.0</min><max>6.0.1</max></php></required></dependencies>
34
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>QuBit_UniversalVariable</name>
4
+ <version>1.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Extension license name (OSL v3.0)</license>
7
  <channel>community</channel>
10
  <description>Universal Variable provides a standardised JSON structure for data relating to the user journey of your visitors, such user details, products viewed and transactions. Data contained in Universal Variable are pushed automatically to Qubit&#x2019;s platform and Opentag scripts.&#xD;
11
  &#xD;
12
  This extension plugs into your Magento installation and automatically inserts Universal Variable and Opentag to the top of your pages, taking away 99% of the development work of implementing Universal Variable on your site.</description>
13
+ <notes>The universal_variable was duplicated on window scope under window.uv and window.universal_variable.&#xD;
14
  &#xD;
15
+ You should only require an update if you are using other Qubit platform technologies.</notes>
 
 
 
 
 
 
 
 
 
 
 
 
16
  <authors><author><name>Callum Rogan</name><user>rogy</user><email>callum@qubitproducts.com</email></author></authors>
17
+ <date>2015-06-11</date>
18
+ <time>12:45:41</time>
19
+ <contents><target name="magecommunity"><dir name="QuBit"><dir name="UniversalVariable"><dir name="Helper"><file name="Data.php" hash="20ee1c7742638407ae4fc5d4119efb4e"/></dir><dir name="Model"><file name="Observer.php" hash="928c127e4468dc4316ce124dc5711c33"/><file name="Uv.php" hash="0893547eceef00d8b3de6eda73cea561"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e708e1e94c34a3d0340b2c26d142b938"/><file name="config.xml" hash="371e38368d8a59fcf9c4f67ab813ec73"/><file name="system.xml" hash="d6f80fb4487a5e73de6886d2c909f90d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="QuBit_UniversalVariable.xml" hash="78415ff310ffbb380e1a95633caf4926"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="qubit"><file name="uv.phtml" hash="c2e5dedd211cd235401df4db7f726f33"/></dir></dir><dir name="layout"><dir name="qubit"><file name="uv.xml" hash="149b99e8bc633f90cef5700301e12590"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="QuBit_UniversalVariable.csv" hash="db8b84cbc643341df36f2ba05275ef71"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.0.1</max></php></required></dependencies>
22
  </package>