SKUIQ - Version 1.2.3

Version Notes

Additional code to improve functionality of adding children to configurable products

Download this release

Release Info

Developer Boutiika Labs
Extension SKUIQ
Version 1.2.3
Comparing to
See all releases


Code changes from version 1.2.2 to 1.2.3

app/code/local/Skuiq/.DS_Store DELETED
Binary file
app/code/local/Skuiq/LogProductUpdate/.DS_Store DELETED
Binary file
app/code/local/Skuiq/SimpleConfigRelation/.DS_Store DELETED
Binary file
app/code/local/Skuiq/SimpleConfigRelation/Model/.DS_Store DELETED
Binary file
app/code/local/Skuiq/SimpleConfigRelation/Model/Api.php CHANGED
@@ -22,12 +22,15 @@ class Skuiq_SimpleConfigRelation_Model_Api extends Mage_Catalog_Model_Api_Resour
22
  {
23
  try {
24
  $_product = Mage::getModel('catalog/product')->load($configurableProduct);
25
- $result = Mage::getResourceSingleton('catalog/product_type_configurable')->saveProducts($_product, $childProduct);
 
 
 
 
26
  return true;
27
  } catch (Exception $e) {
28
- return __error($e);
29
  }
30
- //return $result;
31
  }
32
 
33
  public function getChildsByParentId()
22
  {
23
  try {
24
  $_product = Mage::getModel('catalog/product')->load($configurableProduct);
25
+
26
+ $childIds = $_product->getTypeInstance()->getUsedProductIds();
27
+ $new_children = array_merge($childIds, $childProduct);
28
+
29
+ $result = Mage::getResourceSingleton('catalog/product_type_configurable')->saveProducts($_product, $new_children);
30
  return true;
31
  } catch (Exception $e) {
32
+ return false;
33
  }
 
34
  }
35
 
36
  public function getChildsByParentId()
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SKUIQ</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license>Open</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Allows sync of products and sales from Magento to SKU IQ</summary>
10
  <description>Allows sync of products and sales from Magento to SKU IQ</description>
11
- <notes>Now includes inventory tracking for cancelled and fully or partially credited sales.</notes>
12
  <authors><author><name>Boutiika Labs</name><user>SKUIQ</user><email>dev@skuiq.com</email></author></authors>
13
- <date>2015-02-26</date>
14
- <time>17:54:57</time>
15
- <contents><target name="magelocal"><dir name="Skuiq"><dir name="LogProductUpdate"><dir name="Model"><file name="Observer.php" hash="b21325c560e161e8522c7cdcdd3fb289"/></dir><dir name="etc"><file name="config.xml" hash="362ccb945d56d0e09bc64bdec4d7b2e8"/></dir><file name=".DS_Store" hash="5c077e7e7765c52ee6bd8ea1883d84d5"/></dir><dir name="SendSaleInfo"><dir name="Model"><file name="Observer.php" hash="dbc07f52c96bd3831e875df0135ea60a"/></dir><dir name="etc"><file name="config.xml" hash="9499133489324d19dc03c2a8f7a95e3e"/></dir></dir><dir name="SimpleConfigRelation"><dir name="Helper"><file name="Data.php" hash="3ef946f780001355f51a05c238c14886"/></dir><dir name="Model"><file name="Api.php" hash="e21de6bd6c6198bbe925c76e85e28f8e"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="api.xml" hash="4cc6bbf973cd7d7af47c6ea14af1e927"/><file name="config.xml" hash="1e37ab2f32d83b47ada846be90083f2a"/></dir><file name=".DS_Store" hash="fdeb1f9e27b18614e82b63502614920a"/></dir><file name=".DS_Store" hash="6bdfc4748c1cd4b9b59adf711021a276"/></dir></target><target name="mageetc"><dir name="modules"><file name="Skuiq_LogProductUpdate.xml" hash="6dbf41f8fd94ccccdd630f978a85b9ac"/><file name="Skuiq_SendSaleInfo.xml" hash="111d7a25f091d22b0ee6da65c3a8c58b"/><file name="Skuiq_SimpleConfigRelation.xml" hash="1a7141d7f82993c75e5e40e7a7df4ded"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>5.6.2</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SKUIQ</name>
4
+ <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license>Open</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Allows sync of products and sales from Magento to SKU IQ</summary>
10
  <description>Allows sync of products and sales from Magento to SKU IQ</description>
11
+ <notes>Additional code to improve functionality of adding children to configurable products</notes>
12
  <authors><author><name>Boutiika Labs</name><user>SKUIQ</user><email>dev@skuiq.com</email></author></authors>
13
+ <date>2015-03-24</date>
14
+ <time>03:34:20</time>
15
+ <contents><target name="magelocal"><dir name="Skuiq"><dir name="LogProductUpdate"><dir name="Model"><file name="Observer.php" hash="b21325c560e161e8522c7cdcdd3fb289"/></dir><dir name="etc"><file name="config.xml" hash="362ccb945d56d0e09bc64bdec4d7b2e8"/></dir></dir><dir name="SendSaleInfo"><dir name="Model"><file name="Observer.php" hash="dbc07f52c96bd3831e875df0135ea60a"/></dir><dir name="etc"><file name="config.xml" hash="9499133489324d19dc03c2a8f7a95e3e"/></dir></dir><dir name="SimpleConfigRelation"><dir name="Helper"><file name="Data.php" hash="3ef946f780001355f51a05c238c14886"/></dir><dir name="Model"><file name="Api.php" hash="89df86ac4009ebbb5c16f0da051e423a"/></dir><dir name="etc"><file name="api.xml" hash="4cc6bbf973cd7d7af47c6ea14af1e927"/><file name="config.xml" hash="1e37ab2f32d83b47ada846be90083f2a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Skuiq_LogProductUpdate.xml" hash="6dbf41f8fd94ccccdd630f978a85b9ac"/><file name="Skuiq_SendSaleInfo.xml" hash="111d7a25f091d22b0ee6da65c3a8c58b"/><file name="Skuiq_SimpleConfigRelation.xml" hash="1a7141d7f82993c75e5e40e7a7df4ded"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>5.6.2</max></php></required></dependencies>
18
  </package>