Version Notes
An small modification that add to the return type is an Array of salesOrderEntity and a Total of orders.
Download this release
Release Info
Developer | Ezequiel Reyno |
Extension | GSS_Orders_Integrator |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/local/GSS/OrdersIntegration/Model/Order/Api.php
CHANGED
@@ -63,10 +63,12 @@ class GSS_OrdersIntegration_Model_Order_Api extends Mage_Sales_Model_Api_Resourc
|
|
63 |
->getCollection()
|
64 |
->addAttributeToFilter('status', array('in' => $arr_status))
|
65 |
->addAttributeToFilter('created_at', array('from'=>$magefromDate, 'to'=>$magetoDate))
|
66 |
-
->addAttributeToSort('entity_id', 'DESC')
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
70 |
foreach ($orders as $order) {
|
71 |
if ($order->getGiftMessageId() > 0) {
|
72 |
$order->setGiftMessage(
|
@@ -106,7 +108,7 @@ class GSS_OrdersIntegration_Model_Order_Api extends Mage_Sales_Model_Api_Resourc
|
|
106 |
|
107 |
$arr_orders[] = $result;
|
108 |
}
|
109 |
-
|
110 |
-
return $
|
111 |
}
|
112 |
}
|
63 |
->getCollection()
|
64 |
->addAttributeToFilter('status', array('in' => $arr_status))
|
65 |
->addAttributeToFilter('created_at', array('from'=>$magefromDate, 'to'=>$magetoDate))
|
66 |
+
->addAttributeToSort('entity_id', 'DESC');
|
67 |
+
$retval['total'] = $orders->count();
|
68 |
+
$orders=$orders
|
69 |
+
->setPageSize($pageLimit)
|
70 |
+
->setCurPage($page)
|
71 |
+
->load();
|
72 |
foreach ($orders as $order) {
|
73 |
if ($order->getGiftMessageId() > 0) {
|
74 |
$order->setGiftMessage(
|
108 |
|
109 |
$arr_orders[] = $result;
|
110 |
}
|
111 |
+
$retval['orders']=$arr_orders;
|
112 |
+
return $retval;
|
113 |
}
|
114 |
}
|
app/code/local/GSS/OrdersIntegration/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<GSS_OrdersIntegration>
|
5 |
-
<version>1.0.
|
6 |
</GSS_OrdersIntegration>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<GSS_OrdersIntegration>
|
5 |
+
<version>1.0.1</version>
|
6 |
</GSS_OrdersIntegration>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/GSS/OrdersIntegration/etc/wsdl.xml
CHANGED
@@ -32,6 +32,7 @@
|
|
32 |
</message>
|
33 |
<message name="ordersIntegrationOrdergetOrdersResponse">
|
34 |
<part name="orders" type="typens:ordersArray" />
|
|
|
35 |
</message>
|
36 |
<portType name="{{var wsdl.handler}}PortType">
|
37 |
<operation name="ordersIntegrationOrdergetOrders">
|
32 |
</message>
|
33 |
<message name="ordersIntegrationOrdergetOrdersResponse">
|
34 |
<part name="orders" type="typens:ordersArray" />
|
35 |
+
<part name="total" type="xsd:int" />
|
36 |
</message>
|
37 |
<portType name="{{var wsdl.handler}}PortType">
|
38 |
<operation name="ordersIntegrationOrdergetOrders">
|
app/code/local/GSS/OrdersIntegration/etc/wsi.xml
CHANGED
@@ -31,6 +31,7 @@
|
|
31 |
</wsdl:message>
|
32 |
<wsdl:message name="ordersIntegrationOrdergetOrdersResponse">
|
33 |
<wsdl:part name="orders" type="typens:ordersArray" />
|
|
|
34 |
</wsdl:message>
|
35 |
<wsdl:portType name="{{var wsdl.handler}}PortType">
|
36 |
<wsdl:operation name="ordersIntegrationOrdergetOrders">
|
31 |
</wsdl:message>
|
32 |
<wsdl:message name="ordersIntegrationOrdergetOrdersResponse">
|
33 |
<wsdl:part name="orders" type="typens:ordersArray" />
|
34 |
+
<wsdl:part name="total" type="xsd:int" />
|
35 |
</wsdl:message>
|
36 |
<wsdl:portType name="{{var wsdl.handler}}PortType">
|
37 |
<wsdl:operation name="ordersIntegrationOrdergetOrders">
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>GSS_Orders_Integrator</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/osl-3.0.php">GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>The app will sync across orders of the selected status. The supported Magento version is 1.5.0.0 and later.</summary>
|
10 |
<description>At the defined intervals, the app will sync across orders of the selected status. Only orders matching the criteria will be sync'd. We put this information into our system to allow our customers get the shipping information. Once they process the order it will be marked as completed on our end. GoSweetSpot is a freight management solution. As courier and freight agents, we provide you with attractive rates for services from our carefully selected domestic & international supplier partners.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Ezequiel Reyno</name><user>ereyno</user><email>ezequiel@gosweetspot.com</email></author></authors>
|
13 |
-
<date>2016-03-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="GSS"><dir name="OrdersIntegration"><dir name="Helper"><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/></dir><dir name="Model"><dir name="Order"><dir name="Api"><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/></dir><file name="Api.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>7.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>GSS_Orders_Integrator</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/osl-3.0.php">GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>The app will sync across orders of the selected status. The supported Magento version is 1.5.0.0 and later.</summary>
|
10 |
<description>At the defined intervals, the app will sync across orders of the selected status. Only orders matching the criteria will be sync'd. We put this information into our system to allow our customers get the shipping information. Once they process the order it will be marked as completed on our end. GoSweetSpot is a freight management solution. As courier and freight agents, we provide you with attractive rates for services from our carefully selected domestic & international supplier partners.</description>
|
11 |
+
<notes>An small modification that add to the return type is an Array of salesOrderEntity and a Total of orders.</notes>
|
12 |
<authors><author><name>Ezequiel Reyno</name><user>ereyno</user><email>ezequiel@gosweetspot.com</email></author></authors>
|
13 |
+
<date>2016-03-17</date>
|
14 |
+
<time>20:12:22</time>
|
15 |
+
<contents><target name="magelocal"><dir name="GSS"><dir name="OrdersIntegration"><dir name="Helper"><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/><file name="Data.php" hash="e103cdbfbe61eff4cae21474edd96a6a"/></dir><dir name="Model"><dir name="Order"><dir name="Api"><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/><file name="V2.php" hash="c10908fc20bece05e4bfa2ed97011e8d"/></dir><file name="Api.php" hash="c03cdb00baf07c0b4046bd0c12cfd19c"/><file name="Api.php" hash="c03cdb00baf07c0b4046bd0c12cfd19c"/><file name="Api.php" hash="c03cdb00baf07c0b4046bd0c12cfd19c"/><file name="Api.php" hash="c03cdb00baf07c0b4046bd0c12cfd19c"/><file name="Api.php" hash="c03cdb00baf07c0b4046bd0c12cfd19c"/></dir></dir><file name="composer.json" hash="5a7ffed5eeaed7ab6621b0a4f95e5d85"/><dir name="controllers"><file name="IndexController.php" hash="035ac8d7e430907cb1f506f6f7ab9ff9"/><file name="IndexController.php" hash="035ac8d7e430907cb1f506f6f7ab9ff9"/><file name="IndexController.php" hash="035ac8d7e430907cb1f506f6f7ab9ff9"/></dir><dir name="etc"><file name="api.xml" hash="027db078fb583173258c4c235526673e"/><file name="config.xml" hash="26d60a5b92b9e2994c039c77b9e01000"/><file name="module.xml" hash="b2296e5f3b4f67d236318c17e4fb7642"/><file name="wsdl.xml" hash="50bd307c3799f73ecea482f3710e8011"/><file name="wsi.xml" hash="8b87e283eec6f4601700fdc63cabb539"/><file name="api.xml" hash="027db078fb583173258c4c235526673e"/><file name="config.xml" hash="26d60a5b92b9e2994c039c77b9e01000"/><file name="wsdl.xml" hash="50bd307c3799f73ecea482f3710e8011"/><file name="wsi.xml" hash="8b87e283eec6f4601700fdc63cabb539"/><file name="api.xml" hash="027db078fb583173258c4c235526673e"/><file name="config.xml" hash="26d60a5b92b9e2994c039c77b9e01000"/><file name="module.xml" hash="b2296e5f3b4f67d236318c17e4fb7642"/><file name="wsdl.xml" hash="50bd307c3799f73ecea482f3710e8011"/><file name="wsi.xml" hash="8b87e283eec6f4601700fdc63cabb539"/><file name="api.xml" hash="027db078fb583173258c4c235526673e"/><file name="config.xml" hash="26d60a5b92b9e2994c039c77b9e01000"/><file name="module.xml" hash="b2296e5f3b4f67d236318c17e4fb7642"/><file name="wsdl.xml" hash="50bd307c3799f73ecea482f3710e8011"/><file name="wsi.xml" hash="8b87e283eec6f4601700fdc63cabb539"/></dir><file name="registration.php" hash="6167209f2399ee6e2261cad5fefb8f38"/><file name="composer.json" hash="5a7ffed5eeaed7ab6621b0a4f95e5d85"/><file name="registration.php" hash="6167209f2399ee6e2261cad5fefb8f38"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>7.0.0</max></php></required></dependencies>
|
18 |
</package>
|