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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
return true;
|
| 27 |
} catch (Exception $e) {
|
| 28 |
-
return
|
| 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.
|
| 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>
|
| 12 |
<authors><author><name>Boutiika Labs</name><user>SKUIQ</user><email>dev@skuiq.com</email></author></authors>
|
| 13 |
-
<date>2015-
|
| 14 |
-
<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
|
| 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>
|
