QuBit_UniversalVariable - Version 1.0.23

Version Notes

- Added missing ACL node to fix the save issue in Magento 1.9
- Fix bug where if products aren't shippable (virtual products etc)

Download this release

Release Info

Developer Jing Dong
Extension QuBit_UniversalVariable
Version 1.0.23
Comparing to
See all releases


Code changes from version 1.0.22 to 1.0.23

app/code/community/QuBit/UniversalVariable/Model/Page/Observer.php CHANGED
@@ -451,12 +451,15 @@ class QuBit_UniversalVariable_Model_Page_Observer {
451
  $transaction['shipping_method'] = $this->_extractShippingMethod($order);
452
 
453
  // Get addresses
454
- $shippingId = $order->getShippingAddress()->getId();
455
- $address = $this->_getOrderAddress()->load($shippingId);
 
 
 
 
 
456
  $billingAddress = $order->getBillingAddress();
457
- $shippingAddress = $order->getShippingAddress();
458
  $transaction['billing'] = $this->_getAddress($billingAddress);
459
- $transaction['delivery'] = $this->_getAddress($shippingAddress);
460
 
461
  // Get items
462
  $items = $order->getAllItems();
451
  $transaction['shipping_method'] = $this->_extractShippingMethod($order);
452
 
453
  // Get addresses
454
+ if (method_exists($order,'getShippingAddress')) {
455
+ $shippingId = $order->getShippingAddress()->getId();
456
+ $shippingAddress = $order->getShippingAddress();
457
+ $transaction['delivery'] = $this->_getAddress($shippingAddress);
458
+ $address = $this->_getOrderAddress()->load($shippingId);
459
+ }
460
+
461
  $billingAddress = $order->getBillingAddress();
 
462
  $transaction['billing'] = $this->_getAddress($billingAddress);
 
463
 
464
  // Get items
465
  $items = $order->getAllItems();
app/code/community/QuBit/UniversalVariable/etc/config.xml CHANGED
@@ -6,6 +6,28 @@
6
  </QuBit_UniversalVariable>
7
  </modules>
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  <global>
10
  <models>
11
  <universal_variable_main>
6
  </QuBit_UniversalVariable>
7
  </modules>
8
 
9
+ <adminhtml>
10
+ <acl>
11
+ <resources>
12
+ <admin>
13
+ <children>
14
+ <system>
15
+ <children>
16
+ <config>
17
+ <children>
18
+ <universalvariable_options>
19
+ <title>UV Module Section</title>
20
+ </universalvariable_options>
21
+ </children>
22
+ </config>
23
+ </children>
24
+ </system>
25
+ </children>
26
+ </admin>
27
+ </resources>
28
+ </acl>
29
+ </adminhtml>
30
+
31
  <global>
32
  <models>
33
  <universal_variable_main>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>QuBit_UniversalVariable</name>
4
- <version>1.0.22</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>
@@ -12,11 +12,12 @@
12
  <description>QuBit OpenTag recommends creating the releavant JavaScript object on your page prior to the OpenTag container script. This will assure the values are present on the page when a script tries to access them.&#xD;
13
  &#xD;
14
  If a page does not have the variables of an object that are mentioned below, simply do not even declare them. For example, if your pages only have category and no subcategory, just declare your category. Likewise, if you feel the need to extend the objects below or feel like renaming them, please do so. However, please take a note of the new variable names or the edited ones, because in order to access them from your scripts in your OpenTag container, you will need to use the new variable names.</description>
15
- <notes>Fix #39: when shipping method is not provided, export as empty string instead of null.</notes>
 
16
  <authors><author><name>Jing Dong</name><user>qubitproducts</user><email>jing@qubitdigital.com</email></author></authors>
17
- <date>2014-04-24</date>
18
- <time>09:37:36</time>
19
- <contents><target name="magecommunity"><dir name="QuBit"><dir name="UniversalVariable"><dir name="Block"><file name="Uv.php" hash="9b5cd71bebc9576b5d0714b3fe5c13bb"/></dir><dir name="Helper"><file name="Data.php" hash="b05ea847c16520d5e6eec91e9f604886"/></dir><dir name="Model"><dir name="Page"><file name="Observer.php" hash="310b8798c401a6d313754841389493e3"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="35f6ea94bc8984d18119a6fc5e63ec9f"/><file name="config.xml" hash="fa918eeac4d6e2b9692642b23789d7c8"/><file name="system.xml" hash="26e9e0d4d1559c8c5fbb69fe707e43a3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="qubit"><file name="universal_variable.xml" hash="d492e66356dadf46ead546118d8b91ac"/></dir></dir><dir name="template"><dir name="qubit"><file name="universal_variable.phtml" hash="1775b4ca50c1df8e9542dd2c7bcd14f1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="QuBit_all.xml" hash="a0b70506c32aeeb4198d59d86a019ec9"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>QuBit_UniversalVariable</name>
4
+ <version>1.0.23</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>
12
  <description>QuBit OpenTag recommends creating the releavant JavaScript object on your page prior to the OpenTag container script. This will assure the values are present on the page when a script tries to access them.&#xD;
13
  &#xD;
14
  If a page does not have the variables of an object that are mentioned below, simply do not even declare them. For example, if your pages only have category and no subcategory, just declare your category. Likewise, if you feel the need to extend the objects below or feel like renaming them, please do so. However, please take a note of the new variable names or the edited ones, because in order to access them from your scripts in your OpenTag container, you will need to use the new variable names.</description>
15
+ <notes>- Added missing ACL node to fix the save issue in Magento 1.9&#xD;
16
+ - Fix bug where if products aren't shippable (virtual products etc)</notes>
17
  <authors><author><name>Jing Dong</name><user>qubitproducts</user><email>jing@qubitdigital.com</email></author></authors>
18
+ <date>2014-07-17</date>
19
+ <time>10:06:20</time>
20
+ <contents><target name="magecommunity"><dir name="QuBit"><dir name="UniversalVariable"><dir name="Block"><file name="Uv.php" hash="9b5cd71bebc9576b5d0714b3fe5c13bb"/></dir><dir name="Helper"><file name="Data.php" hash="b05ea847c16520d5e6eec91e9f604886"/></dir><dir name="Model"><dir name="Page"><file name="Observer.php" hash="4ef0fd01571e1052a2c23c69f00b5693"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="35f6ea94bc8984d18119a6fc5e63ec9f"/><file name="config.xml" hash="dcea21a4642c6e05aa0ef2c3b4b9e745"/><file name="system.xml" hash="26e9e0d4d1559c8c5fbb69fe707e43a3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="qubit"><file name="universal_variable.xml" hash="d492e66356dadf46ead546118d8b91ac"/></dir></dir><dir name="template"><dir name="qubit"><file name="universal_variable.phtml" hash="1775b4ca50c1df8e9542dd2c7bcd14f1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="QuBit_all.xml" hash="a0b70506c32aeeb4198d59d86a019ec9"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>