rocwang / firegento-dynamiccategory

Dynamically add products to a category based on an attribute selection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FireGento_DynamicCategory

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.

Facts

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.

Requirements

  • PHP >= 5.3.0

Compatibility

  • Magento >= 1.6

Installation Instructions

Via modman

  • 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".

Via composer

{
    ...
    "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 or composer install

Manually

  • You can copy the files from the folders of this repository to the same folders of your installation

Installation in ALL CASES

  1. Clear the cache, logout from the admin panel and then login again.
  2. You can now dynamically add products to categories based on attributes.

Uninstallation

  1. Remove all extension files from your Magento installation
  2. Run the following sql script in your database:
DROP TABLE dynamiccategory_rule;
DELETE FROM eav_attribute WHERE attribute_code = 'dynamiccategory';
Usage -----------

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.

Dynamic Category Products

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).

Attribute Edit

If you have any issues with this extension, open an issue on GitHub.

Contribution

Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

FireGento Team

License

GNU General Public License, version 3 (GPLv3)

Copyright

(c) 2012-2013 FireGento Team

About

Dynamically add products to a category based on an attribute selection.

License:GNU General Public License v3.0


Languages

Language:PHP 97.7%Language:HTML 2.3%