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.2
- 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
- Install modgit
- Use the command from your Magento installation folder:
modgit add -i src/app/:app/ -b develop Firegento_DynamicCategory 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".
- 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).
By default, there is a cronjob which runs every morning at 2 a.m. to reindex all dynamic categories.
If you want to change this time, please go to System > Configuration > Advanced > System > Dynamic Category and change the cron expression.
If you have any issues with this extension, open an issue on GitHub.
FireGento Team
- Website: http://firegento.com
- Twitter: @firegento
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Thanks goes to these wonderful people (emoji key):
Rouven Alexander Rieker 💻 |
Jörg Weller 💻 |
Sylvain Rayé 💻 |
Paul Hachmang 💻 |
Vinai Kopp 💻 |
Andreas von Studnitz 💻 |
Tymoteusz Motylewski 💻 |
Rafael Corrêa Gomes 💻 |
Alexander Menk 💻 |
JosVerhaar 💻 |
Kevin Krieger 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
GNU General Public License, version 3 (GPLv3)
(c) 2012-2020 FireGento Team