Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
therouv committed Dec 5, 2013
2 parents 19dce80 + 100c012 commit 506e340
Show file tree
Hide file tree
Showing 77 changed files with 4,873 additions and 863 deletions.
674 changes: 674 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

58 changes: 36 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FireGento_DynamicCategory
=====================
Description
-----------
=========================

This extension enables you to dynamically add products to a specific category based on product attributes.

Facts
Expand All @@ -10,14 +9,31 @@ Facts
- [extension on GitHub](https://github.com/firegento/firegento-dynamiccategory)


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.

Description
-----------

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](./docs/images/screenshot-tab-dynamic-products.png)

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](./docs/images/attribute-rule-promotion.png)


Requirements
------------
- PHP >= 5.2.0
- Mage_Core
- PHP >= 5.3.0

Compatibility
-------------
- Magento >= 1.5
- Magento >= 1.6

Installation Instructions
-------------------------
Expand Down Expand Up @@ -61,37 +77,35 @@ Installation Instructions
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.

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](./doc/images/screenshot-tab-dynamic-products.png)

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](./doc/images/attribute-rule-promotion.png)
Uninstallation
--------------
1. Remove all extension files from your Magento installation
2. Run the following sql script in your database:

```sql
DROP TABLE dynamiccategory_rule;
DELETE FROM eav_attribute WHERE attribute_code = 'dynamiccategory';
```


Support
-------
If you have any issues with this extension, open an issue on [GitHub](https://github.com/firegento/firegento-dynamiccategory/issues).
If you have any issues with this extension, open an issue on [GitHub](https://github.com/firegento/firegento-customer/issues).

Contribution
------------
Any contribution is highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

Developer
---------
[http://firegento.com](http://firegento.com)
[@firegento](https://twitter.com/firegento)
FireGento Team
* Website: [http://firegento.com](http://firegento.com)
* Twitter: [@firegento](https://twitter.com/firegento)

Licence
License
-------
[GNU General Public License, version 3 (GPLv3)](http://opensource.org/licenses/gpl-3.0)

Copyright
---------
(c) 2012 FireGento
(c) 2012-2013 FireGento Team
5 changes: 0 additions & 5 deletions build.default.properties

This file was deleted.

53 changes: 0 additions & 53 deletions build.xml

This file was deleted.

Binary file removed build/FireGento_DynamicCategory-0.1.0.tgz
Binary file not shown.
Binary file removed build/FireGento_DynamicCategory-0.2.0.tgz
Binary file not shown.
Binary file removed build/FireGento_DynamicCategory-0.2.1.tgz
Binary file not shown.
Binary file removed build/FireGento_DynamicCategory-0.2.2.tgz
Binary file not shown.
21 changes: 14 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"name": "firegento/dynamiccategory",
"license": ["GPL-3.0"],
"type": "magento-module",
"description": "This extension enables you to dynamically add products to categories based on product attributes.",
"require": {
"magento-hackathon/magento-composer-installer": "*"
}
"name": "firegento/dynamiccategory",
"license": ["GPL-3.0"],
"type": "magento-module",
"description": "This extension enables you to dynamically add products to categories based on product attributes.",
"homepage": "https://github.com/firegento/firegento-dynamiccategory",
"require": {
"magento-hackathon/magento-composer-installer": "*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "html" "">
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" lang="en">
<head>
<meta charset="utf-8"/>
<title>FireGento_DynamicCategory - FireGento_DynamicCategory_Block_Adminhtml_Category_Dynamic - API Documentation</title>
<link href="../css/normalize.css" rel="stylesheet" type="text/css" media="all"/>
<link href="../css/styles.css" rel="stylesheet" type="text/css" media="all"/>
</head>
<body>
<div class="wrapper clearfix">
<div class="topbar clearfix">
<h1>
<a class="brand" href="../index.xhtml">FireGento_DynamicCategory - API Documentation</a>
</h1>
<ul class="nav">
<li class="active">
<a href="../index.xhtml">Overview</a>
</li>
</ul>
</div>
<div class="navigation">
<h3>Members</h3>
<ul>
<li>
<a href="#_category">$_category</a>
</li>
</ul>
<h3>Methods</h3>
<ul>
<li>
<a href="#_prepareLayout">_prepareLayout</a>
</li>
<li>
<a href="#getCategory">getCategory</a>
</li>
</ul>
</div>
<div class="content">
<h2><span style="font-size:60%">\</span>FireGento_DynamicCategory_Block_Adminhtml_Category_Dynamic</h2>
<div class="file-notice">
<p>Condition block for category edit page</p>
</div>
<ul class="fileinfos">
<li><b>Author: </b>FireGento Team &lt;team@firegento.com&gt;</li>
</ul>
<h3>Members</h3>
<ul class="varlist">
<li>
<a name="_category"/>
<h4><span class="label protected">protected</span>object 

$_category</h4>
<ul class="varlist">
<li>Category Model</li>
</ul>
</li>
</ul>
<h3>Methods</h3>
<ul class="varlist">
<li>
<a name="_prepareLayout"/>
<h4><span class="label public">public</span>_prepareLayout<span style="font-size:90%;">( )</span></h4>
<p style="font-size:110%; padding-top:5px;">
<li>Creates the form for the condition based selection of product attributes.</li>
</p>
<ul>
<h4 class="return">Returns:</h4>
<ul class="return">
<li>Self.</li>
</ul>
</ul>
</li>
<li>
<a name="getCategory"/>
<h4><span class="label public">public</span>getCategory<span style="font-size:90%;">( )</span></h4>
<p style="font-size:110%; padding-top:5px;">
<li>Retrieve the current selected category in the admin view.</li>
</p>
<ul>
<h4 class="return">Returns:</h4>
<ul class="return">
<li>Category</li>
</ul>
</ul>
</li>
</ul>
<div class="footer">Generated using phpDox 0.5 - Copyright (C) 2010 - 2013 by Arne Blankerts</div>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "html" "">
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" lang="en">
<head>
<meta charset="utf-8"/>
<title>FireGento_DynamicCategory - FireGento_DynamicCategory_Block_Conditions - API Documentation</title>
<link href="../css/normalize.css" rel="stylesheet" type="text/css" media="all"/>
<link href="../css/styles.css" rel="stylesheet" type="text/css" media="all"/>
</head>
<body>
<div class="wrapper clearfix">
<div class="topbar clearfix">
<h1>
<a class="brand" href="../index.xhtml">FireGento_DynamicCategory - API Documentation</a>
</h1>
<ul class="nav">
<li class="active">
<a href="../index.xhtml">Overview</a>
</li>
</ul>
</div>
<div class="navigation">
<h3>Methods</h3>
<ul>
<li>
<a href="#render">render</a>
</li>
</ul>
</div>
<div class="content">
<h2><span style="font-size:60%">\</span>FireGento_DynamicCategory_Block_Conditions</h2>
<div class="file-notice">
<p>Renderer for the conditions</p>
</div>
<ul class="fileinfos">
<li><b>Author: </b>FireGento Team &lt;team@firegento.com&gt;</li>
</ul>
<h3>Implements</h3>
<ul class="varlist">
<li>
<span title="Varien_Data_Form_Element_Renderer_Interface">Varien_Data_Form_Element_Renderer_Interface</span>
</li>
</ul>
<h3>Methods</h3>
<ul class="varlist">
<li>
<a name="render"/>
<h4><span class="label public">public</span>render<span style="font-size:90%;">( <span class="param-type"><span title="\\Varien_Data_Form_Element_Abstract">Varien_Data_Form_Element_Abstract</span></span><strong> $element</strong> )</span></h4>
<p style="font-size:110%; padding-top:5px;">
<li>Renders the conditions and returns the condition as html.</li>
</p>
<ul>
<h4 class="param">Parameters:</h4>
<ul class="param">
<li><code>$element</code> - Element</li>
</ul>
</ul>
<ul>
<h4 class="return">Returns:</h4>
<ul class="return">
<li>Element as html</li>
</ul>
</ul>
</li>
</ul>
<div class="footer">Generated using phpDox 0.5 - Copyright (C) 2010 - 2013 by Arne Blankerts</div>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "html" "">
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" lang="en">
<head>
<meta charset="utf-8"/>
<title>FireGento_DynamicCategory - FireGento_DynamicCategory_DynamicController - API Documentation</title>
<link href="../css/normalize.css" rel="stylesheet" type="text/css" media="all"/>
<link href="../css/styles.css" rel="stylesheet" type="text/css" media="all"/>
</head>
<body>
<div class="wrapper clearfix">
<div class="topbar clearfix">
<h1>
<a class="brand" href="../index.xhtml">FireGento_DynamicCategory - API Documentation</a>
</h1>
<ul class="nav">
<li class="active">
<a href="../index.xhtml">Overview</a>
</li>
</ul>
</div>
<div class="navigation">
<h3>Methods</h3>
<ul>
<li>
<a href="#newConditionHtmlAction">newConditionHtmlAction</a>
</li>
</ul>
</div>
<div class="content">
<h2><span style="font-size:60%">\</span>FireGento_DynamicCategory_DynamicController</h2>
<div class="file-notice">
<p>Controller for AJAX requests.</p>
</div>
<ul class="fileinfos">
<li><b>Author: </b>FireGento Team &lt;team@firegento.com&gt;</li>
</ul>
<h3>Methods</h3>
<ul class="varlist">
<li>
<a name="newConditionHtmlAction"/>
<h4><span class="label public">public</span>newConditionHtmlAction<span style="font-size:90%;">( )</span></h4>
<p style="font-size:110%; padding-top:5px;">
<li>Returns the html code for a new condition in the resonse.</li>
</p>
</li>
</ul>
<div class="footer">Generated using phpDox 0.5 - Copyright (C) 2010 - 2013 by Arne Blankerts</div>
</div>
</div>
</body>
</html>
Loading

0 comments on commit 506e340

Please sign in to comment.