DynamicCategory is a free community module for Magento which allows you to add automatically products to a category, thanks to a set of rules based on the product attribute.
The interface to set the rules is very similar to the one to create shopping cart rules. See the Usage Chapter below to see how to use it.
- Version: 1.2.0
- extension on GitHub
The module adds a new section "Dynamic Category Product Relater" at the tab "Category Products" of categories in the backend. You can define rules for products to be included in the category.
If a rule should be defined according to a specific attribute, that attribute needs to be enabled for "Use for Promo Rule Conditions" in its attribute configuration.
- PHP >= 5.3.0
- Magento >= 1.6
- Install modman
- Use the command from your Magento installation folder:
modman clone https://github.com/firegento/firegento-dynamiccategory
- Please make sure that the setting "Allow Symlinks" in System Configuration under Developer -> Template Settings is set to "YES".
- Install composer
- Install Magento Composer
- Create a composer.json into your project like the following sample:
{
...
"require": {
"firegento/dynamiccategory":"*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
],
"extra":{
"magento-root-dir": "./"
}
}
- Then from your
composer.json
folder:php composer.phar install
orcomposer install
- You can copy the files from the folders of this repository to the same folders of your installation
- Clear the cache, logout from the admin panel and then login again.
- You can now dynamically add products to categories based on attributes.
- Remove all extension files from your Magento installation
- Run the following sql script in your database:
DROP TABLE dynamiccategory_rule;
DELETE FROM eav_attribute WHERE attribute_code = 'dynamiccategory';
The module adds a new section "Dynamic Category Product Relater" at the tab "Category Products" while reading or editing a category into the backend. You can define rules for products to be included in the category.
To define a rule, click on the +
button and add one or more attributes then fill which value(s) must be valid or not to make the condition TRUE. Then it will apply the product to the current category if conditions are ok. You can set if it must be applied when only one or all conditions are valid.
When you finished to define the rules, save the current category.
If a rule should be defined according to a specific attribute, that attribute needs to be enabled for "Use for Promo Rule Conditions" in its attribute configuration (See Catalog > Attributes > YOUR ATTRIBUTE > Edit it).
If you have any issues with this extension, open an issue on GitHub.
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
FireGento Team
- Website: http://firegento.com
- Twitter: @firegento
GNU General Public License, version 3 (GPLv3)
(c) 2012-2013 FireGento Team