Version Notes
Stable Release.
Download this release
Release Info
Developer | PeteST |
Extension | Securetrading_Multishipping |
Version | 3.3.3 |
Comparing to | |
See all releases |
Code changes from version 3.3.2 to 3.3.3
app/code/local/Securetrading/Multishipping/Helper/Data.php
CHANGED
@@ -1,5 +1,19 @@
|
|
1 |
<?php
|
2 |
|
3 |
class Securetrading_Multishipping_Helper_Data extends Mage_Core_Helper_Abstract {
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
1 |
<?php
|
2 |
|
3 |
class Securetrading_Multishipping_Helper_Data extends Mage_Core_Helper_Abstract {
|
4 |
+
public function getRelatedMultishippingOrders($orderIncrementId) {
|
5 |
+
$multishippingModel = Mage::getModel('securetrading_multishipping/order_set_factory');
|
6 |
+
$orderId = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId)->getId();
|
7 |
+
|
8 |
+
if (!$orderId) {
|
9 |
+
return false;
|
10 |
+
}
|
11 |
+
|
12 |
+
if ($multishippingModel->orderBelongsToAnySet($orderId)) {
|
13 |
+
$orderIds = $multishippingModel->getOrderIdsInSameSet($orderId, false);
|
14 |
+
} else {
|
15 |
+
$orderIds = array($orderId);
|
16 |
+
}
|
17 |
+
return $orderIds;
|
18 |
+
}
|
19 |
}
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Securetrading_Multishipping</name>
|
4 |
-
<version>3.3.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -12,9 +12,9 @@
|
|
12 |
Also provides a set of public functions for determining if an order has related mulitshipping orders and for retrieving those orders.</description>
|
13 |
<notes>Stable Release.</notes>
|
14 |
<authors><author><name>Peter Barrow</name><user>PeteST</user><email>peter.barrow@securetrading.com</email></author></authors>
|
15 |
-
<date>2014-
|
16 |
-
<time>12:
|
17 |
-
<contents><target name="magelocal"><dir name="Securetrading"><dir name="Multishipping"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Multishipping.php" hash="bdcde73d105e1afc684814a54bd9eb2c"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.3.0</min><max>5.5.15</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Securetrading_Multishipping</name>
|
4 |
+
<version>3.3.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
12 |
Also provides a set of public functions for determining if an order has related mulitshipping orders and for retrieving those orders.</description>
|
13 |
<notes>Stable Release.</notes>
|
14 |
<authors><author><name>Peter Barrow</name><user>PeteST</user><email>peter.barrow@securetrading.com</email></author></authors>
|
15 |
+
<date>2014-10-13</date>
|
16 |
+
<time>12:39:15</time>
|
17 |
+
<contents><target name="magelocal"><dir name="Securetrading"><dir name="Multishipping"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Multishipping.php" hash="bdcde73d105e1afc684814a54bd9eb2c"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fe7a4497fa0f19f0e5349975c33b0c75"/></dir><dir name="Model"><file name="Observer.php" hash="5989bc4d2295dbde37e3e894a0cf4295"/><dir name="Order"><dir name="Set"><file name="Factory.php" hash="de63f03f322675e48a2196562bb972da"/><file name="Orders.php" hash="9264019c42414d020991ff9c19269745"/></dir><file name="Set.php" hash="80e0c054905b3bebd460f2d0b8e29b1b"/></dir><dir name="Resource"><dir name="Order"><dir name="Set"><dir name="Orders"><file name="Collection.php" hash="23d7a1c73629c47987c930e090d9a0e4"/></dir><file name="Orders.php" hash="5dfff1685fec9695605eb28264c5cac4"/></dir><file name="Set.php" hash="5742796d47acf5342b17ad292a83e547"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="f2be7b4ca3ca438333a2c3297cfb3fa1"/></dir><dir name="sql"><dir name="securetrading_multishipping"><file name="install-1.0.0.php" hash="7e4fc168ecd7b19ffcc64084b7e70481"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Securetrading_Multishipping.xml" hash="efa3f0c8c146aa898f835b6bcc196547"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="securetrading_multishipping.xml" hash="361acf85ce986e990b40fbc0f3c2b929"/></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.3.0</min><max>5.5.15</max></php></required></dependencies>
|
20 |
</package>
|