Coder Social home page Coder Social logo

shirtsofholl / firegento-dynamiccategory Goto Github PK

View Code? Open in Web Editor NEW

This project forked from firegento/firegento-dynamiccategory

0.0 1.0 0.0 695 KB

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

License: GNU General Public License v3.0

PHP 97.70% HTML 2.30%

firegento-dynamiccategory's Introduction

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

firegento-dynamiccategory's People

Contributors

therouv avatar hackwell avatar sylvainraye avatar vinai avatar amenk avatar paales avatar

Watchers

shirtsofholland avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.