Version Notes
Extension as it is described with basic functionality
Download this release
Release Info
Developer | Vasilii |
Extension | VasiliiB_CategoryBottomDescription |
Version | 0.0.1 |
Comparing to | |
See all releases |
Version 0.0.1
- app/code/local/VasiliiB/CategoryBottomDescription/etc/config.xml +32 -0
- app/code/local/VasiliiB/CategoryBottomDescription/sql/categorybottomdescription_setup/mysql4-install-0.0.1.php +20 -0
- app/design/frontend/base/default/layout/CategoryBottomDesc.xml +14 -0
- app/design/frontend/base/default/template/catalog/category/bottom-desc.phtml +8 -0
- app/etc/modules/VasiliiB_CategoryBottomDescription.xml +12 -0
- package.xml +18 -0
app/code/local/VasiliiB/CategoryBottomDescription/etc/config.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<VasiliiB_CategoryBottomDescription>
|
5 |
+
<version>0.0.1</version>
|
6 |
+
</VasiliiB_CategoryBottomDescription>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<frontend>
|
10 |
+
<layout>
|
11 |
+
<updates>
|
12 |
+
<vasiliib_categorybottomdescription>
|
13 |
+
<file>CategoryBottomDesc.xml</file>
|
14 |
+
</vasiliib_categorybottomdescription>
|
15 |
+
</updates>
|
16 |
+
</layout>
|
17 |
+
</frontend>
|
18 |
+
|
19 |
+
<global>
|
20 |
+
<resources>
|
21 |
+
<categorybottomdescription_setup>
|
22 |
+
<setup>
|
23 |
+
<module>VasiliiB_CategoryBottomDescription</module>
|
24 |
+
<class>Mage_Catalog_Model_Resource_Setup</class>
|
25 |
+
</setup>
|
26 |
+
<connection>
|
27 |
+
<use>default_setup</use>
|
28 |
+
</connection>
|
29 |
+
</categorybottomdescription_setup>
|
30 |
+
</resources>
|
31 |
+
</global>
|
32 |
+
</config>
|
app/code/local/VasiliiB/CategoryBottomDescription/sql/categorybottomdescription_setup/mysql4-install-0.0.1.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer = $this;
|
3 |
+
$installer->startSetup();
|
4 |
+
$attribute = array(
|
5 |
+
'type' => 'text',
|
6 |
+
'label'=> 'Bottom Description',
|
7 |
+
'input' => 'textarea',
|
8 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
|
9 |
+
'visible' => true,
|
10 |
+
'required' => false,
|
11 |
+
'user_defined' => true,
|
12 |
+
'wysiwyg_enabled' => true,
|
13 |
+
'visible_on_front' => true,
|
14 |
+
'is_html_allowed_on_front' => true,
|
15 |
+
'default' => "",
|
16 |
+
'group' => "General Information"
|
17 |
+
);
|
18 |
+
$installer->addAttribute('catalog_category', 'bottom_description', $attribute);
|
19 |
+
$installer->endSetup();
|
20 |
+
?>
|
app/design/frontend/base/default/layout/CategoryBottomDesc.xml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<catalog_category_default>
|
4 |
+
<reference name="content">
|
5 |
+
<block name="category_bottom_desc" type="catalog/category_view" after="category.products" template="catalog/category/bottom-desc.phtml" />
|
6 |
+
</reference>
|
7 |
+
</catalog_category_default>
|
8 |
+
|
9 |
+
<catalog_category_layered>
|
10 |
+
<reference name="content">
|
11 |
+
<block name="category_bottom_desc" type="catalog/category_view" after="category.products" template="catalog/category/bottom-desc.phtml" />
|
12 |
+
</reference>
|
13 |
+
</catalog_category_layered>
|
14 |
+
</layout>
|
app/design/frontend/base/default/template/catalog/category/bottom-desc.phtml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_category = $this->getCurrentCategory();
|
3 |
+
if( $_category->getBottomDescription() ):
|
4 |
+
?>
|
5 |
+
<div class="category_description description bottom_description">
|
6 |
+
<?php echo Mage::helper('cms')->getPageTemplateProcessor()->filter($_category->getBottomDescription()); ?>
|
7 |
+
</div>
|
8 |
+
<?php endif; ?>
|
app/etc/modules/VasiliiB_CategoryBottomDescription.xml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<VasiliiB_CategoryBottomDescription>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
<depends>
|
8 |
+
<Mage_Catalog />
|
9 |
+
</depends>
|
10 |
+
</VasiliiB_CategoryBottomDescription>
|
11 |
+
</modules>
|
12 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>VasiliiB_CategoryBottomDescription</name>
|
4 |
+
<version>0.0.1</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>OSL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Show additional description at the bottom of category page (after product list).</summary>
|
10 |
+
<description>Show additional description at the bottom of category page (after product list).</description>
|
11 |
+
<notes>Extension as it is described with basic functionality</notes>
|
12 |
+
<authors><author><name>Vasilii</name><user>vasiliib</user><email>burlacu.vasilii@yabdex.ru</email></author></authors>
|
13 |
+
<date>2016-07-05</date>
|
14 |
+
<time>13:55:08</time>
|
15 |
+
<contents><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="CategoryBottomDesc.xml" hash="6b71cdeb9126124ff03575757279d28c"/></dir><dir name="template"><dir name="catalog"><dir name="category"><file name="bottom-desc.phtml" hash="47786a0e9bc840e007b0b31735c2b30b"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir><dir name="VasiliiB"><dir name="CategoryBottomDescription"><dir name="etc"><file name="config.xml" hash="0c06abaa9164162d7029187535fdbff8"/></dir><dir name="sql"><dir name="categorybottomdescription_setup"><file name="mysql4-install-0.0.1.php" hash="8f9d092f4ff0a92b6eb0c60fbfec7dd1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="VasiliiB_CategoryBottomDescription.xml" hash="5c7dbb4bf45c54c77e0632658dade5e3"/></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.6.1</min><max>7.7.0</max></php><package><name>Mage_Catalog</name><channel>community</channel><min/><max/></package></required></dependencies>
|
18 |
+
</package>
|