nChannel_Communicator - Version 0.2.2

Version Notes

Added is_in_stock as an attribute when pushing inventory data.

Download this release

Release Info

Developer nChannel
Extension nChannel_Communicator
Version 0.2.2
Comparing to
See all releases


Code changes from version 0.2.1 to 0.2.2

app/code/community/Nchannel/Communicator/Model/Api2/Stock/Item/Rest/Admin/V1.php CHANGED
@@ -50,6 +50,13 @@ class Nchannel_Communicator_Model_Api2_Stock_Item_Rest_Admin_V1 extends Mage_Cat
50
  Mage::log('Min_Qty: '.$data['min_qty'],null,'nChannel_Communicator.log');
51
  }
52
 
 
 
 
 
 
 
 
53
  if ($data['price'] != null && $data['price'] != '')
54
  {
55
  //$product->setPrice($data['price']);
50
  Mage::log('Min_Qty: '.$data['min_qty'],null,'nChannel_Communicator.log');
51
  }
52
 
53
+ // Is In Stock
54
+ if ($data['is_in_stock'] != null && $data['is_in_stock'] != '')
55
+ {
56
+ $stockItem->setData('is_in_stock', $data['is_in_stock']);
57
+ Mage::log('Is_In_Stock: '.$data['is_in_stock'],null,'nChannel_Communicator.log');
58
+ }
59
+
60
  if ($data['price'] != null && $data['price'] != '')
61
  {
62
  //$product->setPrice($data['price']);
app/code/community/Nchannel/Communicator/etc/api2.xml CHANGED
@@ -18,12 +18,13 @@
18
  <update>1</update>
19
  </admin>
20
  </privileges>
21
- <attributes translate="sku qty min_qty notify_stock_qty" module="api2">
22
  <sku>SKU</sku>
23
  <qty>Qty</qty>
24
  <min_qty>Qty for Item's Status to Become Out of Stock</min_qty>
25
  <notify_stock_qty>Notify for Quantity Below</notify_stock_qty>
26
  <price>Price of the Item</price>
 
27
  </attributes>
28
  <routes>
29
  <route_entity>
18
  <update>1</update>
19
  </admin>
20
  </privileges>
21
+ <attributes translate="sku qty min_qty notify_stock_qty is_in_stock" module="api2">
22
  <sku>SKU</sku>
23
  <qty>Qty</qty>
24
  <min_qty>Qty for Item's Status to Become Out of Stock</min_qty>
25
  <notify_stock_qty>Notify for Quantity Below</notify_stock_qty>
26
  <price>Price of the Item</price>
27
+ <is_in_stock>Stock Availability</is_in_stock>
28
  </attributes>
29
  <routes>
30
  <route_entity>
app/code/community/Nchannel/Communicator/etc/config.xml CHANGED
@@ -1,7 +1,7 @@
1
  <config>
2
  <modules>
3
  <Nchannel_Communicator>
4
- <version>0.1.10</version>
5
  </Nchannel_Communicator>
6
  </modules>
7
  <admin>
1
  <config>
2
  <modules>
3
  <Nchannel_Communicator>
4
+ <version>0.2.2</version>
5
  </Nchannel_Communicator>
6
  </modules>
7
  <admin>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>nChannel_Communicator</name>
4
- <version>0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://portal.nchannel.com/Content/data/EULA_2012-04-21.pdf">nChannel EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</summary>
10
  <description>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</description>
11
- <notes>Added an update for modifying pricing when updating inventories through the REST API.</notes>
12
  <authors><author><name>nChannel</name><user>jpepper</user><email>jpepper@nchannel.com</email></author></authors>
13
- <date>2015-10-14</date>
14
- <time>18:46:10</time>
15
- <contents><target name="magecommunity"><dir name="Nchannel"><dir name="Communicator"><dir name="Block"><dir name="Adminhtml"><file name="Version.php" hash="afa8d0feea50602251007002ae1eb4b1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7d5d9a9593474991cec1d1f521f41482"/></dir><dir name="Model"><file name="Api.php" hash="9001584aa011771215b4a26d31214998"/><dir name="Api2"><dir name="Renderer"><file name="Json.php" hash="acd69b838d8787caaf570549084d2cc3"/></dir><dir name="Stock"><dir name="Item"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="e9a15674cd42fe80bb9f3a2321b0cd03"/></dir></dir></dir></dir></dir><file name="Observer.php" hash="13b789b1b2b269779280d995224d320a"/><dir name="Productutility"><dir name="Api"><file name="V2.php" hash="06659b3dae0d7c7926a2e59bce12018c"/></dir><file name="Api.php" hash="83e30c3b4526c851d8ff31dd73957495"/></dir><dir name="Source"><file name="NchannelEnvironment.php" hash="7aac70643c805e246035ac240011ee0b"/><file name="NchannelOrderStatus.php" hash="c10bfe2ed4433a70a2fc5436b267a6f5"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="04f02984743361ad17d0d9c85c05afc5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c959ca1b60ae9fc0ea61107c4bf3a8d"/><file name="api.xml" hash="9ec26efdc3de2f9ddb883000962d268c"/><file name="api2.xml" hash="fda700dfa22770de0898a9e8d929bf5a"/><file name="config.xml" hash="11ac8090f0a1b735aa3e92cbca9108bf"/><file name="system.xml" hash="2fcdba2729ff1ce78c08777a38da6c0f"/><file name="wsdl.xml" hash="53112b017d3f6fc2f2ebf65bc5088c9e"/><file name="wsi.xml" hash="41f6baef07d7e977a3fbd26cb37bd5d2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nchannel_Communicator.xml" hash="698fe66f544b1bcf42154dcd4d621527"/></dir><dir/></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>5.5.11</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>nChannel_Communicator</name>
4
+ <version>0.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="https://portal.nchannel.com/Content/data/EULA_2012-04-21.pdf">nChannel EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</summary>
10
  <description>nChannel Communicator allows for event driven communication with the nChannel API on creation of new orders.</description>
11
+ <notes>Added is_in_stock as an attribute when pushing inventory data.</notes>
12
  <authors><author><name>nChannel</name><user>jpepper</user><email>jpepper@nchannel.com</email></author></authors>
13
+ <date>2015-10-23</date>
14
+ <time>19:41:45</time>
15
+ <contents><target name="magecommunity"><dir name="Nchannel"><dir name="Communicator"><dir name="Block"><dir name="Adminhtml"><file name="Version.php" hash="afa8d0feea50602251007002ae1eb4b1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7d5d9a9593474991cec1d1f521f41482"/></dir><dir name="Model"><file name="Api.php" hash="9001584aa011771215b4a26d31214998"/><dir name="Api2"><dir name="Renderer"><file name="Json.php" hash="acd69b838d8787caaf570549084d2cc3"/></dir><dir name="Stock"><dir name="Item"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="6d9f6107fb7c6f582b894f36f39689a4"/></dir></dir></dir></dir></dir><file name="Observer.php" hash="13b789b1b2b269779280d995224d320a"/><dir name="Productutility"><dir name="Api"><file name="V2.php" hash="06659b3dae0d7c7926a2e59bce12018c"/></dir><file name="Api.php" hash="83e30c3b4526c851d8ff31dd73957495"/></dir><dir name="Source"><file name="NchannelEnvironment.php" hash="7aac70643c805e246035ac240011ee0b"/><file name="NchannelOrderStatus.php" hash="c10bfe2ed4433a70a2fc5436b267a6f5"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="04f02984743361ad17d0d9c85c05afc5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c959ca1b60ae9fc0ea61107c4bf3a8d"/><file name="api.xml" hash="9ec26efdc3de2f9ddb883000962d268c"/><file name="api2.xml" hash="d2f3d95f7c53717e5f85f953b04f33ac"/><file name="config.xml" hash="a615f59407376779af900dc22153f628"/><file name="system.xml" hash="2fcdba2729ff1ce78c08777a38da6c0f"/><file name="wsdl.xml" hash="53112b017d3f6fc2f2ebf65bc5088c9e"/><file name="wsi.xml" hash="41f6baef07d7e977a3fbd26cb37bd5d2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nchannel_Communicator.xml" hash="698fe66f544b1bcf42154dcd4d621527"/></dir><dir/></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>5.5.11</max></php></required></dependencies>
18
  </package>