Bulk_Product_Category_Modifier - Version 1.0.0.3

Version Notes

Second Stable Release

Download this release

Release Info

Developer Zealousweb Technologies Pvt Ltd.
Extension Bulk_Product_Category_Modifier
Version 1.0.0.3
Comparing to
See all releases


Code changes from version 1.0.0.2 to 1.0.0.3

app/design/adminhtml/default/default/template/bulkcategoryassign/content.phtml CHANGED
@@ -48,15 +48,26 @@ function get_categories($categories) {
48
  <!-- Category Tree View Start -->
49
  <input type="hidden" name="product_ids" value="<?php echo implode(",",$this->getRequest()->getParam('product')); ?>" />
50
  <div class="block block-list block-categories">
 
 
 
51
  <div class="block-content left-categories-container">
52
- <ul class="treeView">
53
- <li>
54
- <?php $cat = Mage::getModel('catalog/category')->load(2); // Load Default Category ?>
55
- <input class="check-cat" type="checkbox" name="cat_checkbox[]" value="<?php echo $cat->getId();?>">
56
- <?php echo $cat->getName(); ?>(<?php echo $cat->getProductCount()?>)
57
- <?php $categories = $cat->getCategories($cat->getId()); // Load All Category ?>
58
- <?php echo get_categories($categories); // Get All Categories ?>
59
- </li>
 
 
 
 
 
 
 
 
60
  </ul>
61
  </div>
62
  </div>
@@ -72,4 +83,16 @@ function get_categories($categories) {
72
  </div>
73
  <script type="text/javascript">
74
  var editForm = new varienForm('category_edit_form');
 
 
 
 
 
 
 
 
 
 
 
 
75
  </script>
48
  <!-- Category Tree View Start -->
49
  <input type="hidden" name="product_ids" value="<?php echo implode(",",$this->getRequest()->getParam('product')); ?>" />
50
  <div class="block block-list block-categories">
51
+ <a onclick="return selectall()" href="javascript:void(0)">Select All</a>
52
+ <span class="separator">|</span>
53
+ <a onclick="return unselectall()" href="javascript:void(0)">Unselect All</a>
54
  <div class="block-content left-categories-container">
55
+ <ul class="treeView">
56
+ <?php $categoryColl = Mage::getModel('catalog/category')
57
+ ->getCollection()
58
+ ->addAttributeToSelect('*')
59
+ ->addAttributeToSelect('id')
60
+ ->addAttributeToSort('position')//sort by position
61
+ ->addLevelFilter(1)
62
+ ->addIsActiveFilter(); ?>
63
+ <?php foreach($categoryColl as $cat): ?>
64
+ <li>
65
+ <input class="check-cat" type="checkbox" name="cat_checkbox[]" value="<?php echo $cat->getId();?>">
66
+ <?php echo $cat->getName(); ?>(<?php echo $cat->getProductCount()?>)
67
+ <?php $categories = $cat->getCategories($cat->getId()); // Load All Category ?>
68
+ <?php echo get_categories($categories); // Get All Categories ?>
69
+ </li>
70
+ <?php endforeach;?>
71
  </ul>
72
  </div>
73
  </div>
83
  </div>
84
  <script type="text/javascript">
85
  var editForm = new varienForm('category_edit_form');
86
+ function selectall(){
87
+ var all = document.getElementsByClassName("check-cat");
88
+ for(var i = 0; i < all.length; i++){
89
+ all[i].checked = true;
90
+ }
91
+ }
92
+ function unselectall(){
93
+ var all = document.getElementsByClassName("check-cat");
94
+ for(var i = 0; i < all.length; i++){
95
+ all[i].checked = false;
96
+ }
97
+ }
98
  </script>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bulk_Product_Category_Modifier</name>
4
- <version>1.0.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Modify multiple product categories at a time</summary>
10
  <description>This extension allows us to remove or assign multiple categories to multiple products from the Product Grid itself. One do not need to get inside the Product page to assign categories.</description>
11
- <notes>First Stable Release</notes>
12
  <authors><author><name>ZealousWeb Technologies Pvt Ltd.</name><user>ZealousWeb</user><email>magento@zealousweb.com</email></author></authors>
13
- <date>2014-12-10</date>
14
- <time>07:40:43</time>
15
- <contents><target name="magecommunity"><dir name="ZealousWeb"><dir name="BulkCategoryAssign"><dir name="Model"><file name="Observer.php" hash="5ee37fa872e04e863bbc5132fdee3603"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Values.php" hash="413d4adaf667467b67a3629ba0300e28"/></dir><dir name="Multiple"><file name="Values.php" hash="460cee48b7611a17c8fa8a17fd303d34"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AssigncatController.php" hash="ffb266bfeca66d0b1c936568077bc40a"/><dir name="Catalog"><file name="ProductController.php" hash="a6737d644656bc38aa9bde9683be2d18"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="dcdeb7fd3ae70e95c30db110d5ab9b7c"/><file name="system.xml" hash="1e939142cc09142fce6776e63ccabcb9"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ZealousWeb_BulkCategoryAssign.xml" hash="b11330129cd6b97eafa105cf41bdd4b5"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bulkcategoryassign.xml" hash="8062c2256b35ef491b9c83f4d83d1529"/></dir><dir name="template"><dir name="bulkcategoryassign"><file name="content.phtml" hash="5656c953332e1b4ddee9e1475e70cb4b"/><file name="left.phtml" hash="6816c129f43e1c7078100198aaa1f9cb"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="bulkcategoryassign.css" hash="c3fb41f4566adbada13bbbf97a7c8ae4"/><dir name="images"><dir name="bulkcategoryassign"><file name="button-closed.png" hash="563b78324e0712c0902cb4f77cb9eb86"/><file name="button-open.png" hash="c710849a0d2b61ad1f0fc36c0e59d131"/><file name="button.png" hash="97f3055c5046c851eea2dad7e5227508"/><file name="list-item-contents.png" hash="00ae24d5bc76df9eedaea597859963e4"/><file name="list-item-last.png" hash="e2bfb790f46855c378e50f3c0a82ea01"/><file name="list-item-open.png" hash="732d1cc59f3a488c89c624eb434eac98"/><file name="list-item-root.png" hash="5529d21e7ec68e9cb750a4895ff0b480"/><file name="list-item.png" hash="e03ec1bf3d9e16bb3005ccf8d26eaa6c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bulk_Product_Category_Modifier</name>
4
+ <version>1.0.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Modify multiple product categories at a time</summary>
10
  <description>This extension allows us to remove or assign multiple categories to multiple products from the Product Grid itself. One do not need to get inside the Product page to assign categories.</description>
11
+ <notes>Second Stable Release</notes>
12
  <authors><author><name>ZealousWeb Technologies Pvt Ltd.</name><user>ZealousWeb</user><email>magento@zealousweb.com</email></author></authors>
13
+ <date>2014-12-30</date>
14
+ <time>09:06:27</time>
15
+ <contents><target name="magecommunity"><dir name="ZealousWeb"><dir name="BulkCategoryAssign"><dir name="Model"><file name="Observer.php" hash="5ee37fa872e04e863bbc5132fdee3603"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Values.php" hash="413d4adaf667467b67a3629ba0300e28"/></dir><dir name="Multiple"><file name="Values.php" hash="460cee48b7611a17c8fa8a17fd303d34"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AssigncatController.php" hash="ffb266bfeca66d0b1c936568077bc40a"/><dir name="Catalog"><file name="ProductController.php" hash="a6737d644656bc38aa9bde9683be2d18"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="dcdeb7fd3ae70e95c30db110d5ab9b7c"/><file name="system.xml" hash="1e939142cc09142fce6776e63ccabcb9"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ZealousWeb_BulkCategoryAssign.xml" hash="b11330129cd6b97eafa105cf41bdd4b5"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bulkcategoryassign.xml" hash="8062c2256b35ef491b9c83f4d83d1529"/></dir><dir name="template"><dir name="bulkcategoryassign"><file name="content.phtml" hash="1a814cdf09fc51fc73b5da8704973968"/><file name="left.phtml" hash="6816c129f43e1c7078100198aaa1f9cb"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="bulkcategoryassign.css" hash="c3fb41f4566adbada13bbbf97a7c8ae4"/><dir name="images"><dir name="bulkcategoryassign"><file name="button-closed.png" hash="563b78324e0712c0902cb4f77cb9eb86"/><file name="button-open.png" hash="c710849a0d2b61ad1f0fc36c0e59d131"/><file name="button.png" hash="97f3055c5046c851eea2dad7e5227508"/><file name="list-item-contents.png" hash="00ae24d5bc76df9eedaea597859963e4"/><file name="list-item-last.png" hash="e2bfb790f46855c378e50f3c0a82ea01"/><file name="list-item-open.png" hash="732d1cc59f3a488c89c624eb434eac98"/><file name="list-item-root.png" hash="5529d21e7ec68e9cb750a4895ff0b480"/><file name="list-item.png" hash="e03ec1bf3d9e16bb3005ccf8d26eaa6c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>