GSS_Orders_Integrator - Version 1.0.2

Version Notes

An small modification in the way we calculate the number of rows.

Download this release

Release Info

Developer Ezequiel Reyno
Extension GSS_Orders_Integrator
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/local/GSS/OrdersIntegration/Model/Order/Api.php CHANGED
@@ -64,10 +64,11 @@ class GSS_OrdersIntegration_Model_Order_Api extends Mage_Sales_Model_Api_Resourc
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) {
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->getSize();
68
+ $orders->clear();
69
  $orders=$orders
 
70
  ->setCurPage($page)
71
+ ->setPageSize($pageLimit)
72
  ->load();
73
  foreach ($orders as $order) {
74
  if ($order->getGiftMessageId() > 0) {
app/code/local/GSS/OrdersIntegration/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <GSS_OrdersIntegration>
5
- <version>1.0.1</version>
6
  </GSS_OrdersIntegration>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <GSS_OrdersIntegration>
5
+ <version>1.0.2</version>
6
  </GSS_OrdersIntegration>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
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 &amp; 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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GSS_Orders_Integrator</name>
4
+ <version>1.0.2</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 &amp; international supplier partners.</description>
11
+ <notes>An small modification in the way we calculate the number of rows.</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:42:38</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="9f354002d679a77951f8b8e05c30c8fd"/><file name="Api.php" hash="9f354002d679a77951f8b8e05c30c8fd"/><file name="Api.php" hash="9f354002d679a77951f8b8e05c30c8fd"/><file name="Api.php" hash="9f354002d679a77951f8b8e05c30c8fd"/><file name="Api.php" hash="9f354002d679a77951f8b8e05c30c8fd"/></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="854f4579c39f8e4105e9fc7a514df1af"/><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="854f4579c39f8e4105e9fc7a514df1af"/><file name="wsdl.xml" hash="50bd307c3799f73ecea482f3710e8011"/><file name="wsi.xml" hash="8b87e283eec6f4601700fdc63cabb539"/><file name="api.xml" hash="027db078fb583173258c4c235526673e"/><file name="config.xml" hash="854f4579c39f8e4105e9fc7a514df1af"/><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="854f4579c39f8e4105e9fc7a514df1af"/><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>