Magmodules_Sortbydate - Version 1.0.0.0

Version Notes

First stable release

Download this release

Release Info

Developer Magento Core Team
Extension Magmodules_Sortbydate
Version 1.0.0.0
Comparing to
See all releases


Version 1.0.0.0

app/code/local/Magmodules/Sortbydate/etc/config.xml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magmodules.eu
5
+ * http://www.magmodules.eu
6
+ *
7
+ * NOTICE OF LICENSE
8
+ *
9
+ * This source file is subject to the Open Software License (OSL 3.0)
10
+ * that is bundled with this package in the file LICENSE.txt.
11
+ * It is also available through the world-wide-web at this URL:
12
+ * http://opensource.org/licenses/osl-3.0.php
13
+ * If you did not receive a copy of the license and are unable to
14
+ * obtain it through the world-wide-web, please send an email
15
+ * to info@magmodules.eu so we can send you a copy immediately.
16
+ *
17
+ * @category Magmodules
18
+ * @package Magmodules_Sortbydate
19
+ * @author Magmodules <info@magmodules.eu)
20
+ * @copyright Copyright (c) 2013 (http://www.magmodules.eu)
21
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22
+ */
23
+ -->
24
+ <config>
25
+ <modules>
26
+ <Magmodules_Sortbydate>
27
+ <version>1.0.0</version>
28
+ </Magmodules_Sortbydate>
29
+ </modules>
30
+ <global>
31
+ <resources>
32
+ <sortbydate_setup>
33
+ <setup>
34
+ <module>Magmodules_Sortbydate</module>
35
+ <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class>
36
+ </setup>
37
+ <connection>
38
+ <use>core_setup</use>
39
+ </connection>
40
+ </sortbydate_setup>
41
+ </resources>
42
+ </global>
43
+ <frontend>
44
+ <translate>
45
+ <modules>
46
+ <Magmodules_Sortbydate>
47
+ <files>
48
+ <default>Magmodules_Sortbydate.csv</default>
49
+ </files>
50
+ </Magmodules_Sortbydate>
51
+ </modules>
52
+ </translate>
53
+ </frontend>
54
+ <adminhtml>
55
+ <translate>
56
+ <modules>
57
+ <Magmodules_Sortbydate>
58
+ <files>
59
+ <default>Magmodules_Sortbydate.csv</default>
60
+ </files>
61
+ </Magmodules_Sortbydate>
62
+ </modules>
63
+ </translate>
64
+ </adminhtml>
65
+ </config>
app/code/local/Magmodules/Sortbydate/sql/sortbydate_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magmodules.eu
4
+ * http://www.magmodules.eu
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to info@magmodules.eu so we can send you a copy immediately.
15
+ *
16
+ * @category Magmodules
17
+ * @package Magmodules_Sortbydate
18
+ * @author Magmodules <info@magmodules.eu)
19
+ * @copyright Copyright (c) 2013 (http://www.magmodules.eu)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+
23
+ $installer = $this;
24
+ $installer->startSetup();
25
+
26
+ $prodEntityTypeId = $installer->getEntityTypeId('catalog_product');
27
+ $installer->updateAttribute($prodEntityTypeId, 'created_at', 'frontend_label', 'Date created');
28
+ $installer->updateAttribute($prodEntityTypeId, 'created_at', 'used_for_sort_by', 1);
29
+
30
+ $installer->endSetup();
app/etc/modules/Magmodules_Sortbydate.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Magmodules_Sortbydate>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Magmodules_Sortbydate>
8
+ </modules>
9
+ </config>
app/locale/en_US/Magmodules_Sortbydate.csv ADDED
@@ -0,0 +1 @@
 
1
+ "Date created", "Date created"
app/locale/nl_NL/Magmodules_Sortbydate.csv ADDED
@@ -0,0 +1 @@
 
1
+ "Date created", "Datum"
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Magmodules_Sortbydate</name>
4
+ <version>1.0.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>OSL 3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Sort category products by date</summary>
10
+ <description>Sort category products by date</description>
11
+ <notes>First stable release</notes>
12
+ <authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.eu</email></author></authors>
13
+ <date>2013-02-10</date>
14
+ <time>13:57:33</time>
15
+ <contents><target name="magelocal"><dir name="Magmodules"><dir name="Sortbydate"><dir name="etc"><file name="config.xml" hash="1b22f829bb37ae6b5556d250ce9459a2"/></dir><dir name="sql"><dir name="sortbydate_setup"><file name="mysql4-install-0.1.0.php" hash="201336150a707715cc1d9fb122457405"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Sortbydate.xml" hash="468544b2c4df08e194b19fb0ac0fdc33"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Sortbydate.csv" hash="e8f715350d801c7ac81d679493a0d60b"/></dir><dir name="nl_NL"><file name="Magmodules_Sortbydate.csv" hash="c8a334694909e36b5875a9f26ebc2bc6"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies/>
18
+ </package>