Zero1_Producttoolbox - Version 1.0.1.4

Version Notes

Fixed issue with Magento 1.5

Download this release

Release Info

Developer Magento Core Team
Extension Zero1_Producttoolbox
Version 1.0.1.4
Comparing to
See all releases


Code changes from version 1.0.1.3 to 1.0.1.4

app/code/community/Zero1/Producttoolbox/Block/Empty/Bundles.php CHANGED
@@ -27,8 +27,8 @@ class Zero1_Producttoolbox_Block_Empty_Bundles extends Mage_Adminhtml_Block_Widg
27
->addAttributeToSelect('visibility')
28
->addAttributeToSelect('attribute_set_id')
29
->joinTable('bundle/selection',
30
- 'parent_product_id = entity_id',
31
- array('parent_product_id' => 'parent_product_id'),
32
null,
33
'left');
34
@@ -38,10 +38,11 @@ class Zero1_Producttoolbox_Block_Empty_Bundles extends Mage_Adminhtml_Block_Widg
38
'eq' => Mage_Catalog_Model_Product_Type::TYPE_BUNDLE),
39
));
40
41
$collection->addFieldToFilter(
42
array(
43
- array( 'attribute' => 'parent_product_id',
44
- 'null' => null),
45
));
46
47
$collection->groupByAttribute('entity_id');
27
->addAttributeToSelect('visibility')
28
->addAttributeToSelect('attribute_set_id')
29
->joinTable('bundle/selection',
30
+ 'parent_product_id=entity_id',
31
+ array('bundle_parent_id' => 'parent_product_id'),
32
null,
33
'left');
34
38
'eq' => Mage_Catalog_Model_Product_Type::TYPE_BUNDLE),
39
));
40
41
+ // Filter to show only products without parents
42
$collection->addFieldToFilter(
43
array(
44
+ array( 'attribute' => 'bundle_parent_id',
45
+ 'null' => true),
46
));
47
48
$collection->groupByAttribute('entity_id');
app/code/community/Zero1/Producttoolbox/Block/Simples.php CHANGED
@@ -28,16 +28,28 @@ class Zero1_Producttoolbox_Block_Simples extends Mage_Adminhtml_Block_Widget_Gri
28
->addAttributeToSelect('attribute_set_id')
29
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)
30
->joinTable('catalog/product_super_link',
31
- 'product_id = entity_id',
32
- array('parent_id' => 'parent_id'),
33
null,
34
'left');
35
36
// Filter to show only products without parents
37
$collection->addFieldToFilter(
38
array(
39
- array( 'attribute' => 'parent_id',
40
- 'null' => null),
41
));
42
43
// Get the stock quanity
28
->addAttributeToSelect('attribute_set_id')
29
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE)
30
->joinTable('catalog/product_super_link',
31
+ 'product_id=entity_id',
32
+ array('configurable_parent_id' => 'product_id'),
33
+ null,
34
+ 'left')
35
+ ->joinTable('bundle/selection',
36
+ 'product_id=entity_id',
37
+ array('bundle_parent_id' => 'parent_product_id'),
38
null,
39
'left');
40
+
41
+ // Filter to show only products without parents
42
+ $collection->addFieldToFilter(
43
+ array(
44
+ array( 'attribute' => 'configurable_parent_id',
45
+ 'null' => true),
46
+ ));
47
48
// Filter to show only products without parents
49
$collection->addFieldToFilter(
50
array(
51
+ array( 'attribute' => 'bundle_parent_id',
52
+ 'null' => true),
53
));
54
55
// Get the stock quanity
app/code/community/Zero1/Producttoolbox/controllers/Adminhtml/Producttoolbox/Empty/BundlesController.php CHANGED
@@ -14,7 +14,7 @@ class Zero1_Producttoolbox_Adminhtml_Producttoolbox_Empty_BundlesController exte
14
function gridAction()
15
{
16
$this->getResponse()->setBody(
17
- $this->getLayout()->createBlock('producttoolbox/empty/bundles', 'producttoolbox_producttoolbox_empty_bundles')
18
->toHtml()
19
);
20
}
14
function gridAction()
15
{
16
$this->getResponse()->setBody(
17
+ $this->getLayout()->createBlock('producttoolbox/empty_bundles', 'producttoolbox_producttoolbox_empty_bundles')
18
->toHtml()
19
);
20
}
package.xml CHANGED
@@ -1,19 +1,18 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Zero1_Producttoolbox</name>
4
- <version>1.0.1.3</version>
5
<stability>stable</stability>
6
<license uri="http://www.opensource.org/licenses/gpl-license.php">OSL v3.0</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Allows you to find simple products that are not linked to a configurable, grouped or bundle product.</summary>
10
<description>Using the Product Toolbox you can easily identify simple products that are not linked to configurable, grouped or bundle products.</description>
11
- <notes>This module is a work in progress and more features will be added as development progresses.&#xD;
12
- </notes>
13
- <authors><author><name>Arron Moss</name><user>zero1limited</user><email>arron.moss@zero1.co.uk</email></author></authors>
14
- <date>2012-01-10</date>
15
- <time>22:16:16</time>
16
- <contents><target name="magecommunity"><dir name="Zero1"><dir name="Producttoolbox"><dir name="Block"><dir name="Empty"><file name="Bundles.php" hash="329c8dde2e468bd65078501012f285c3"/></dir><file name="Simples.php" hash="41f3cf776958c4708c1e3632f30d5876"/></dir><dir name="Helper"><file name="Data.php" hash="a5d515291a41dddb9be6038f01a3743d"/></dir><dir name="Model"><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><file name="Collection.php" hash="ab60f2c8c606a4ca0ad1ec5fe47a65f0"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Producttoolbox"><dir name="Empty"><file name="BundlesController.php" hash="8e6c18a9310b9d916835c7ca64c646ba"/></dir><file name="SimplesController.php" hash="5797437536b6e2bbbd18571025628ce6"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="d071b1ba3f9e82c82c900fcf2523bd4a"/><file name="config.xml" hash="dc042ea1a0933a792710f9185461a816"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="producttoolbox.xml" hash="fd7c3e4353fd39ff525e92e615d0289b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zero1_Producttoolbox.xml" hash="9267659f3cc38ce858454ef5a5cb5293"/></dir></target></contents>
17
<compatible/>
18
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Zero1_Producttoolbox</name>
4
+ <version>1.0.1.4</version>
5
<stability>stable</stability>
6
<license uri="http://www.opensource.org/licenses/gpl-license.php">OSL v3.0</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Allows you to find simple products that are not linked to a configurable, grouped or bundle product.</summary>
10
<description>Using the Product Toolbox you can easily identify simple products that are not linked to configurable, grouped or bundle products.</description>
11
+ <notes>Fixed issue with Magento 1.5</notes>
12
+ <authors><author><name>Arron Moss</name><user>auto-converted</user><email>arron.moss@zero1.co.uk</email></author></authors>
13
+ <date>2012-01-31</date>
14
+ <time>11:53:10</time>
15
+ <contents><target name="magecommunity"><dir name="Zero1"><dir name="Producttoolbox"><dir name="Block"><dir name="Empty"><file name="Bundles.php" hash="0e5e533e5dc7cf043fffed98e9df826e"/></dir><file name="Simples.php" hash="54edae28c641b7c2dc148ff45fca0848"/></dir><dir name="Helper"><file name="Data.php" hash="a5d515291a41dddb9be6038f01a3743d"/></dir><dir name="Model"><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><file name="Collection.php" hash="ab60f2c8c606a4ca0ad1ec5fe47a65f0"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Producttoolbox"><dir name="Empty"><file name="BundlesController.php" hash="6a806b260b7c0b2318fd3d50bf410a6e"/></dir><file name="SimplesController.php" hash="5797437536b6e2bbbd18571025628ce6"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="d071b1ba3f9e82c82c900fcf2523bd4a"/><file name="config.xml" hash="dc042ea1a0933a792710f9185461a816"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="producttoolbox.xml" hash="fd7c3e4353fd39ff525e92e615d0289b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zero1_Producttoolbox.xml" hash="9267659f3cc38ce858454ef5a5cb5293"/></dir></target></contents>
16
<compatible/>
17
+ <dependencies/>
18
</package>