Version Notes
Category_Extra_Information
Download this release
Release Info
Developer | ksvcorporation |
Extension | Category_Extra_Information |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
- app/code/local/Ksv/Informations/Block/Setup.php +6 -0
- app/code/local/Ksv/Informations/Model/Resource/Setup.php +3 -0
- app/code/local/Ksv/Informations/etc/config.xml +60 -0
- app/code/local/Ksv/Informations/etc/system.xml +43 -0
- app/code/local/Ksv/Informations/sql/informations_setup/mysql4-install-0.1.0.php +15 -0
- app/design/frontend/base/default/layout/informations.xml +20 -0
- app/design/frontend/base/default/template/ksv/informations/view.phtml +7 -0
- app/etc/modules/Ksv_Informations.xml +9 -0
- package.xml +20 -0
app/code/local/Ksv/Informations/Block/Setup.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Ksv_Informations_Block_Setup extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
if (Mage::getStoreConfig('ksv_informations/global/enabled')==1)
|
5 |
+
{
|
6 |
+
?>
|
app/code/local/Ksv/Informations/Model/Resource/Setup.php
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Ksv_Informations_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {
|
3 |
+
}
|
app/code/local/Ksv/Informations/etc/config.xml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
|
4 |
+
<modules>
|
5 |
+
<Ksv_Informations>
|
6 |
+
<version>0.1.0</version>
|
7 |
+
</Ksv_Informations>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
<global>
|
11 |
+
<blocks>
|
12 |
+
<informations>
|
13 |
+
<class>Ksv_Setup_Block</class>
|
14 |
+
</informations>
|
15 |
+
</blocks>
|
16 |
+
<resources>
|
17 |
+
<informations_setup>
|
18 |
+
<setup>
|
19 |
+
<module>Ksv_Informations</module>
|
20 |
+
<class>Mage_Eav_Model_Entity_Setup</class>
|
21 |
+
</setup>
|
22 |
+
<connection>
|
23 |
+
<use>default_setup</use>
|
24 |
+
</connection>
|
25 |
+
</informations_setup>
|
26 |
+
</resources>
|
27 |
+
</global>
|
28 |
+
|
29 |
+
<frontend>
|
30 |
+
<layout>
|
31 |
+
<updates>
|
32 |
+
<informations>
|
33 |
+
<file>informations.xml</file>
|
34 |
+
</informations>
|
35 |
+
</updates>
|
36 |
+
</layout>
|
37 |
+
</frontend>
|
38 |
+
|
39 |
+
<adminhtml>
|
40 |
+
<acl>
|
41 |
+
<resources>
|
42 |
+
<admin>
|
43 |
+
<children>
|
44 |
+
<system>
|
45 |
+
<children>
|
46 |
+
<config>
|
47 |
+
<children>
|
48 |
+
<ksv_informations>
|
49 |
+
<title>KSV Informations</title>
|
50 |
+
</ksv_informations>
|
51 |
+
</children>
|
52 |
+
</config>
|
53 |
+
</children>
|
54 |
+
</system>
|
55 |
+
</children>
|
56 |
+
</admin>
|
57 |
+
</resources>
|
58 |
+
</acl>
|
59 |
+
</adminhtml>
|
60 |
+
</config>
|
app/code/local/Ksv/Informations/etc/system.xml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
|
4 |
+
<tabs>
|
5 |
+
<ksv translate="label">
|
6 |
+
<label>KSV Extensions</label>
|
7 |
+
<sort_order>300</sort_order>
|
8 |
+
</ksv>
|
9 |
+
</tabs>
|
10 |
+
|
11 |
+
<sections>
|
12 |
+
<ksv_informations translate="label">
|
13 |
+
<class>separator-top</class>
|
14 |
+
<label>Category Extra Informations</label>
|
15 |
+
<tab>ksv</tab>
|
16 |
+
<sort_order>30</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
<show_in_website>1</show_in_website>
|
19 |
+
<show_in_store>1</show_in_store>
|
20 |
+
<groups>
|
21 |
+
<global translate="label">
|
22 |
+
<label>Category Extra Informations Below Products</label>
|
23 |
+
<sort_order>600</sort_order>
|
24 |
+
<show_in_default>1</show_in_default>
|
25 |
+
<show_in_website>1</show_in_website>
|
26 |
+
<show_in_store>1</show_in_store>
|
27 |
+
<fields>
|
28 |
+
<enabled translate="label">
|
29 |
+
<label>Enabled</label>
|
30 |
+
<frontend_type>select</frontend_type>
|
31 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
+
<sort_order>10</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
</enabled>
|
37 |
+
</fields>
|
38 |
+
</global>
|
39 |
+
</groups>
|
40 |
+
</ksv_informations>
|
41 |
+
</sections>
|
42 |
+
|
43 |
+
</config>
|
app/code/local/Ksv/Informations/sql/informations_setup/mysql4-install-0.1.0.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$this->startSetup();
|
3 |
+
$this->addAttribute('catalog_category', 'informations', array(
|
4 |
+
'group' => 'General',
|
5 |
+
'input' => 'textarea',
|
6 |
+
'type' => 'text',
|
7 |
+
'label' => 'Extra informations',
|
8 |
+
'backend' => '',
|
9 |
+
'visible' => 1,
|
10 |
+
'required' => 0,
|
11 |
+
'user_defined' => 1,
|
12 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
13 |
+
));
|
14 |
+
$this->endSetup();
|
15 |
+
?>
|
app/design/frontend/base/default/layout/informations.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
|
4 |
+
<catalog_category_default>
|
5 |
+
<reference name="content">
|
6 |
+
<block type="catalog/category_view" name="category.informations" template="ksv/informations/view.phtml"/>
|
7 |
+
</reference>
|
8 |
+
</catalog_category_default>
|
9 |
+
|
10 |
+
<catalog_category_layered>
|
11 |
+
<reference name="content">
|
12 |
+
<block type="catalog/category_view" name="category.informations" template="ksv/informations/view.phtml"/>
|
13 |
+
</reference>
|
14 |
+
</catalog_category_layered>
|
15 |
+
|
16 |
+
</layout>
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
app/design/frontend/base/default/template/ksv/informations/view.phtml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if (Mage::getStoreConfig('ksv_informations/global/enabled')): ?>
|
2 |
+
<?php
|
3 |
+
$_helper = $this->helper('catalog/output');
|
4 |
+
$_category = $this->getCurrentCategory();
|
5 |
+
echo $_helper->categoryAttribute($_category, $_category->informations, 'informations')
|
6 |
+
?>
|
7 |
+
<?php endif; ?>
|
app/etc/modules/Ksv_Informations.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Ksv_Informations>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Ksv_Informations>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Category_Extra_Information</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GPL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>This extension allow to add add an extra category information at the bottom of your category.
|
10 |
+
</summary>
|
11 |
+
<description><p>extension allow to add add an extra category information at the bottom of your category and information added to this field will be shown at the bottom of your category below the products grid or list.</p>
|
12 |
+
</description>
|
13 |
+
<notes>Category_Extra_Information</notes>
|
14 |
+
<authors><author><name>ksvcorporation</name><user>ksvcorporation</user><email>ksvcorporation@gmail.com</email></author></authors>
|
15 |
+
<date>2014-03-01</date>
|
16 |
+
<time>19:46:52</time>
|
17 |
+
<contents><target name="magelocal"><dir name="Ksv"><dir name="Informations"><dir name="Block"><file name="Setup.php" hash="f016d68be39fa70ed3de34c097a35772"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="43bebdd9ec3964205e664c3ace5d8a3d"/></dir></dir><dir name="etc"><file name="config.xml" hash="9722db9d833aec26a671eb09b8879d8b"/><file name="system.xml" hash="d8b775f834eecd6fa26c00a8beb11457"/></dir><dir name="sql"><dir name="informations_setup"><file name="mysql4-install-0.1.0.php" hash="e2b7093a996f0c37f15fe76dd8d207b2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ksv_Informations.xml" hash="dbc23cfc242be85ad74bb8f70f9bc101"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="informations.xml" hash="d4c40eb4ea875289c4ff598ce51adebe"/></dir><dir name="template"><dir name="ksv"><dir name="informations"><file name="view.phtml" hash="77c7d1f0430adb5c8d83640ca75cfac8"/></dir></dir></dir></dir></dir></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|