NewHavenSoftware_CMSAPI - Version 9.0.1.11

Version Notes

9.0.1.11 01/08/2014

Updated custom fields to better support 3rd party classes. The third party class needs to support the info method accepting an order increment id as the only parameter

9.0.1.10 11/12/2013

Updated support for size and color products. This update is required for any size and/or color products. Also in this version is a fix for blank screens or errors when attempting to configure roles.

9.0.1.9 10/14/2013

In the V2 API changed the salesOrderInfo item.product_options from serialized php to json text for configurable product attribute information used during order download into CMS.

Download this release

Release Info

Developer Jason Morrison
Extension NewHavenSoftware_CMSAPI
Version 9.0.1.11
Comparing to
See all releases


Code changes from version 9.0.1.10 to 9.0.1.11

app/code/community/NewHavenSoftware/CMSAPI/Model/Catalog/Product/Api/V2.php CHANGED
@@ -16,7 +16,7 @@ class NewHavenSoftware_CMSAPI_Model_Catalog_Product_Api_V2 extends Mage_Catalog_
16
  * Check for configurable products array passed through API Call
17
  * http://www.stephenrhoades.com/?p=338 Had to significantly modify it
18
  */
19
-
20
  $_typeInstance = $product->getTypeInstance();
21
  if(property_exists($productData, 'configurable_products') && is_array($productData->configurable_products)) {
22
  if(count($productData->configurable_products) > 0) { // only process if we have something to process
16
  * Check for configurable products array passed through API Call
17
  * http://www.stephenrhoades.com/?p=338 Had to significantly modify it
18
  */
19
+
20
  $_typeInstance = $product->getTypeInstance();
21
  if(property_exists($productData, 'configurable_products') && is_array($productData->configurable_products)) {
22
  if(count($productData->configurable_products) > 0) { // only process if we have something to process
app/code/community/NewHavenSoftware/CMSAPI/Model/Custom/Api/V2.php CHANGED
@@ -110,13 +110,15 @@ class NewHavenSoftware_CMSAPI_Model_Custom_Api_V2 extends Mage_Api_Model_Resourc
110
  if (!isset($obj[$field])) {
111
  // the field name doesn't exist as an associative key here, see if this object contains key or value
112
  foreach ($obj as $key => $value) {
113
- if ($obj[$key] == $field) {
114
  $result = $obj[$valueName];
115
  break; // using key/value pairs
116
  }
117
  if (is_array($value) || is_object($value)) {
118
  $result = $this->findValue($value,$field);
119
- break;
 
 
120
  }
121
  }
122
  } else { //$obj[$field] is set, use it
110
  if (!isset($obj[$field])) {
111
  // the field name doesn't exist as an associative key here, see if this object contains key or value
112
  foreach ($obj as $key => $value) {
113
+ if ($keyName == $key && $obj[$keyName] == $field) {
114
  $result = $obj[$valueName];
115
  break; // using key/value pairs
116
  }
117
  if (is_array($value) || is_object($value)) {
118
  $result = $this->findValue($value,$field);
119
+ if ($result <> '') {
120
+ break; //only break if we have a result, otherwise keep looking
121
+ }
122
  }
123
  }
124
  } else { //$obj[$field] is set, use it
app/code/community/NewHavenSoftware/CMSAPI/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <NewHavenSoftware_CMSAPI>
6
- <version>9.0.1.10</version>
7
  </NewHavenSoftware_CMSAPI>
8
  </modules>
9
  <adminhtml>
3
  <config>
4
  <modules>
5
  <NewHavenSoftware_CMSAPI>
6
+ <version>9.0.1.11</version>
7
  </NewHavenSoftware_CMSAPI>
8
  </modules>
9
  <adminhtml>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NewHavenSoftware_CMSAPI</name>
4
- <version>9.0.1.10</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -18,18 +18,18 @@ Adds the following to the v2 API:&#xD;
18
  &lt;/ol&gt;&#xD;
19
  &#xD;
20
  This extension is recommended for integration with the CMS eCMS module.&lt;br /&gt;&lt;br /&gt;</description>
21
- <notes>&lt;strong&gt;9.0.1.10&lt;/strong&gt; 11/12/2013&lt;br /&gt;&#xD;
 
 
 
22
  Updated support for size and color products. This update is required for any size and/or color products. Also in this version is a fix for blank screens or errors when attempting to configure roles. &lt;br /&gt;&lt;br /&gt;&#xD;
23
  &#xD;
24
  &lt;strong&gt;9.0.1.9&lt;/strong&gt; 10/14/2013&lt;br /&gt;&#xD;
25
- In the V2 API changed the salesOrderInfo item.product_options from serialized php to json text for configurable product attribute information used during order download into CMS.&lt;br /&gt;&lt;br /&gt;&#xD;
26
- &#xD;
27
- &lt;strong&gt;9.0.1.8&lt;/strong&gt; 09/18/2013&lt;br /&gt;&#xD;
28
- Added cmsapiGiftMessageInfo to the V2 api that will return an object with to,from, and message values. See the NewHaven Software Magento Setup Guide for more information about the message template plug-in option.&lt;br /&gt;&lt;br /&gt;</notes>
29
  <authors><author><name>Jason Morrison</name><user>nhsjason</user><email>jmorrison@newhavensoftware.com</email></author></authors>
30
- <date>2013-11-25</date>
31
- <time>17:26:20</time>
32
- <contents><target name="magecommunity"><dir name="NewHavenSoftware"><dir name="CMSAPI"><dir name="Helper"><file name="Data.php" hash="d2b766dc9b2531da8a84213dcec33776"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="383a8db3afa315ad1170941ef4615362"/></dir></dir></dir><dir name="Check"><dir name="Api"><file name="V2.php" hash="f589ff6d45ee96855afe53461092813e"/></dir></dir><dir name="Custom"><dir name="Api"><file name="V2.php" hash="ab68dd0819bb8f116b3bb0f491a99b52"/></dir></dir><dir name="Gift"><dir name="Message"><dir name="Api"><file name="V2.php" hash="0a5ffdd3fc3760b311970169858d5475"/></dir></dir></dir><dir name="Sales"><dir name="Order"><dir name="Api"><file name="V2.php" hash="03443ab449fb867f4a5bb08877bea5d6"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ba4c36dbd3d346c3561fb5822d5fd3b4"/><file name="api.xml" hash="d60a74b7cefdcdcc5ac51f425dc5ce14"/><file name="config.xml" hash="97335fca11b00414fb9a04950e313914"/><file name="system.xml" hash="3e71dda77aa28dd02afc40816ecd908e"/><file name="wsdl.xml" hash="d0bc71bbdae1de15040a367396313d70"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NewHavenSoftware_CMSAPI.xml" hash="4c5fe5d61b389c00a8e54970a29017a0"/></dir></target></contents>
33
  <compatible/>
34
- <dependencies><required><php><min>5.1.0</min><max>5.5.4</max></php></required></dependencies>
35
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NewHavenSoftware_CMSAPI</name>
4
+ <version>9.0.1.11</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
18
  &lt;/ol&gt;&#xD;
19
  &#xD;
20
  This extension is recommended for integration with the CMS eCMS module.&lt;br /&gt;&lt;br /&gt;</description>
21
+ <notes>&lt;strong&gt;9.0.1.11&lt;/strong&gt; 01/08/2014&lt;br /&gt;&#xD;
22
+ Updated custom fields to better support 3rd party classes. The third party class needs to support the info method accepting an order increment id as the only parameter&lt;br /&gt;&lt;br /&gt;&#xD;
23
+ &#xD;
24
+ &lt;strong&gt;9.0.1.10&lt;/strong&gt; 11/12/2013&lt;br /&gt;&#xD;
25
  Updated support for size and color products. This update is required for any size and/or color products. Also in this version is a fix for blank screens or errors when attempting to configure roles. &lt;br /&gt;&lt;br /&gt;&#xD;
26
  &#xD;
27
  &lt;strong&gt;9.0.1.9&lt;/strong&gt; 10/14/2013&lt;br /&gt;&#xD;
28
+ In the V2 API changed the salesOrderInfo item.product_options from serialized php to json text for configurable product attribute information used during order download into CMS.&lt;br /&gt;&lt;br /&gt;</notes>
 
 
 
29
  <authors><author><name>Jason Morrison</name><user>nhsjason</user><email>jmorrison@newhavensoftware.com</email></author></authors>
30
+ <date>2014-01-08</date>
31
+ <time>23:26:33</time>
32
+ <contents><target name="magecommunity"><dir name="NewHavenSoftware"><dir name="CMSAPI"><dir name="Helper"><file name="Data.php" hash="d2b766dc9b2531da8a84213dcec33776"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="4bb4f10d96309b7adcf6f5e3cadb0450"/></dir></dir></dir><dir name="Check"><dir name="Api"><file name="V2.php" hash="f589ff6d45ee96855afe53461092813e"/></dir></dir><dir name="Custom"><dir name="Api"><file name="V2.php" hash="ca3413348381782f660ba30eb51a5e4a"/></dir></dir><dir name="Gift"><dir name="Message"><dir name="Api"><file name="V2.php" hash="0a5ffdd3fc3760b311970169858d5475"/></dir></dir></dir><dir name="Sales"><dir name="Order"><dir name="Api"><file name="V2.php" hash="03443ab449fb867f4a5bb08877bea5d6"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ba4c36dbd3d346c3561fb5822d5fd3b4"/><file name="api.xml" hash="d60a74b7cefdcdcc5ac51f425dc5ce14"/><file name="config.xml" hash="dda40dd87ee3ec3873401d1749b9efb3"/><file name="system.xml" hash="3e71dda77aa28dd02afc40816ecd908e"/><file name="wsdl.xml" hash="d0bc71bbdae1de15040a367396313d70"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NewHavenSoftware_CMSAPI.xml" hash="4c5fe5d61b389c00a8e54970a29017a0"/></dir></target></contents>
33
  <compatible/>
34
+ <dependencies><required><php><min>5.1.0</min><max>5.5.6</max></php></required></dependencies>
35
  </package>