Version Notes
It provides a bridge between Magento and Orderhive to exchange data in a form of Rest APIs.
Download this release
Release Info
Developer | Jayneel |
Extension | Orderhive_Restapi |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/local/Orderhive/Restapi/Model/Api2/Order.php
CHANGED
@@ -328,8 +328,14 @@ class Orderhive_Restapi_Model_Api2_Order extends Mage_Api2_Model_Resource
|
|
328 |
$shipCnt = 0;
|
329 |
$result[$cnt] = $order->getData();
|
330 |
$result[$cnt]['tax_type'] = $tax_config['price'];
|
331 |
-
|
332 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
foreach ($order->getAllItems() as $key => $item)
|
334 |
{
|
335 |
$itemData = $item->getData();
|
328 |
$shipCnt = 0;
|
329 |
$result[$cnt] = $order->getData();
|
330 |
$result[$cnt]['tax_type'] = $tax_config['price'];
|
331 |
+
if($order->getShippingAddress() != Null)
|
332 |
+
$result[$cnt]['shipping_address'] = $order->getShippingAddress()->getData();
|
333 |
+
else
|
334 |
+
$result[$cnt]['shipping_address'] = Null;
|
335 |
+
if($order->getBillingAddress() != Null)
|
336 |
+
$result[$cnt]['billing_address'] = $order->getBillingAddress()->getData();
|
337 |
+
else
|
338 |
+
$result[$cnt]['billing_address'] = Null;
|
339 |
foreach ($order->getAllItems() as $key => $item)
|
340 |
{
|
341 |
$itemData = $item->getData();
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Orderhive_Restapi</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>"Orderhive RestAPI Integration" Extension for Magento will provide smooth and reliable RestAPIs (products, customers and sales orders) for sharing large amount of data between your store and Orderhive without affecting your store performance. It provides an interface to revoke permission from Orderhive in order to stop API calls.</description>
|
11 |
<notes>It provides a bridge between Magento and Orderhive to exchange data in a form of Rest APIs.</notes>
|
12 |
<authors><author><name>Jayneel Patel</name><user>jayneel</user><email>jayneel@openxcell.com</email></author><author><name>Niyati Patel</name><user>niyati7</user><email>niyati@openxcelltechnolabs.com</email></author></authors>
|
13 |
-
<date>2016-05-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir><dir name="Orderhive"><dir><dir name="Restapi"><dir name="Helper"><file name="Data.php" hash="38c518a233dd81e503671c17f5693687"/></dir><dir name="Model"><dir name="Api2"><dir name="Customer"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="dbccdafc8f5d34be40e250c9b39007b7"/></dir></dir><file name="Rest.php" hash="680b9ad673c5881bb90ec9b73a14b789"/></dir><dir name="Order"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="de30d47be6461bebf125f67be3c7a3a0"/></dir></dir><file name="Rest.php" hash="3a9e5fbd1cf8518c6c6b7a1fc9ca772c"/></dir><file name="Order.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Orderhive_Restapi</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
10 |
<description>"Orderhive RestAPI Integration" Extension for Magento will provide smooth and reliable RestAPIs (products, customers and sales orders) for sharing large amount of data between your store and Orderhive without affecting your store performance. It provides an interface to revoke permission from Orderhive in order to stop API calls.</description>
|
11 |
<notes>It provides a bridge between Magento and Orderhive to exchange data in a form of Rest APIs.</notes>
|
12 |
<authors><author><name>Jayneel Patel</name><user>jayneel</user><email>jayneel@openxcell.com</email></author><author><name>Niyati Patel</name><user>niyati7</user><email>niyati@openxcelltechnolabs.com</email></author></authors>
|
13 |
+
<date>2016-05-23</date>
|
14 |
+
<time>06:47:02</time>
|
15 |
+
<contents><target name="magelocal"><dir><dir name="Orderhive"><dir><dir name="Restapi"><dir name="Helper"><file name="Data.php" hash="38c518a233dd81e503671c17f5693687"/></dir><dir name="Model"><dir name="Api2"><dir name="Customer"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="dbccdafc8f5d34be40e250c9b39007b7"/></dir></dir><file name="Rest.php" hash="680b9ad673c5881bb90ec9b73a14b789"/></dir><dir name="Order"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="de30d47be6461bebf125f67be3c7a3a0"/></dir></dir><file name="Rest.php" hash="3a9e5fbd1cf8518c6c6b7a1fc9ca772c"/></dir><file name="Order.php" hash="abadc088fc8134e0efd6a06ab4bc8111"/><dir name="Product"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="6998ad9f26d0385900c30de0e78dc304"/></dir></dir><file name="Rest.php" hash="18f55c1872784840b13c15a0bbbeb3a9"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f2fc00926ccc5ef37e1405c82eb80bff"/><file name="api2.xml" hash="539851f8abfa003fa1582c03e16ca2a5"/><file name="config.xml" hash="ee839e036d108366a9b89fab9a781bd1"/><file name="system.xml" hash="c61198c01afaa3303d6dc77526d29769"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Orderhive_Restapi.xml" hash="f71701a1803ed12d95f70fc6042caae0"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|