prefix-order-id - Version 1.0.1

Version Notes

prefix-order-id

Download this release

Release Info

Developer contact@orangemantra.com
Extension prefix-order-id
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/OM/Neworderid/Helper/Data.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Neworderid default Helper
4
+ *
5
+ * @category OM
6
+ * @package OM_Neworderid
7
+ * @copyright Copyright (c) 2016-2017 OM (http://www.orangemantra.com/)
8
+ * @author OM (Orange Mantra)
9
+ * @version Release: 1.0.0
10
+ * @Class OM_Neworderid_Helper_Data
11
+ *
12
+ */
13
+ class OM_Neworderid_Helper_Data extends Mage_Core_Helper_Abstract
14
+ {
15
+ }
16
+
app/code/community/OM/Neworderid/Model/Eav/Entity/Type.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Neworderid Model Eav Entity Type
4
+ *
5
+ * @category OM
6
+ * @package OM_Neworderid
7
+ * @copyright Copyright (c) 2016-2017 OM (http://www.orangemantra.com/)
8
+ * @author OM (Orange Mantra)
9
+ * @version Release: 1.0.0
10
+ * @Class OM_Neworderid_Model_Eav_Entity_Type
11
+ *
12
+ */
13
+ class OM_Neworderid_Model_Eav_Entity_Type extends Mage_Eav_Model_Entity_Type
14
+ {
15
+ public function fetchNewIncrementId($storeId = null)
16
+ {
17
+ $incrementId = parent::fetchNewIncrementId($storeId);
18
+ $preFix = Mage::getStoreConfig('neworder_id/general/prefix');
19
+ $incrementId = $preFix . $incrementId;
20
+ return $incrementId;
21
+ }
22
+ }
23
+
app/code/community/OM/Neworderid/etc/adminhtml.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-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 license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category OM
23
+ * @package OM_Neworderid
24
+ * @copyright Copyright (c) 2016-2017 OM (http://www.orangemantra.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <config>
29
+ <acl>
30
+ <all>
31
+ <title>Allow Everything</title>
32
+ </all>
33
+ <resources>
34
+ <admin>
35
+ <children>
36
+ <system>
37
+ <children>
38
+ <config>
39
+ <children>
40
+ <neworderid module="neworderid">
41
+ <title>Prefix order id</title>
42
+ </neworderid>
43
+ </children>
44
+ </config>
45
+ </children>
46
+ </system>
47
+ </children>
48
+ </admin>
49
+ </resources>
50
+ </acl>
51
+ </config>
app/code/community/OM/Neworderid/etc/config.xml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-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 license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category OM
23
+ * @package OM_Neworderid
24
+ * @copyright Copyright (c) 2016-2017 OM (http://www.orangemantra.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <config>
29
+ <modules>
30
+ <OM_Neworderid>
31
+ <version>1.0.1</version>
32
+ </OM_Neworderid>
33
+ </modules>
34
+ <global>
35
+ <helpers>
36
+ <neworderid>
37
+ <class>OM_Neworderid_Helper</class>
38
+ </neworderid>
39
+ </helpers>
40
+ <models>
41
+ <neworderid>
42
+ <class>OM_Neworderid_Model</class>
43
+ <resourceModel>neworderid_mysql4</resourceModel>
44
+ </neworderid>
45
+ <eav>
46
+ <rewrite>
47
+ <entity_type>OM_Neworderid_Model_Eav_Entity_Type</entity_type>
48
+ </rewrite>
49
+ </eav>
50
+ </models>
51
+ </global>
52
+ </config>
app/code/community/OM/Neworderid/etc/system.xml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-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 license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category OM
23
+ * @package OM_Neworderid
24
+ * @copyright Copyright (c) 2016-2017 OM (http://www.orangemantra.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <config>
29
+ <sections>
30
+ <neworderid translate="label" module="neworderid">
31
+ <label>Prefix order id</label>
32
+ <tab>sales</tab><frontend_type>text</frontend_type>
33
+ <sort_order>340</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ <show_in_store>1</show_in_store>
38
+ <groups>
39
+ <general translate="label">
40
+ <label>Configuration</label>
41
+ <frontend_type>text</frontend_type>
42
+ <sort_order>10</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ <expanded>1</expanded>
47
+ <fields>
48
+ <prefix translate="label">
49
+ <label>Order Prefix</label>
50
+ <frontend_type>text</frontend_type>
51
+ <sort_order>0</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>1</show_in_store>
55
+ </prefix>
56
+ </fields>
57
+ </general>
58
+ </groups>
59
+ </neworderid>
60
+ </sections>
61
+ </config>
app/etc/modules/{OM_NewOrderId.xml → OM_Neworderid.xml} RENAMED
@@ -27,10 +27,10 @@
27
  -->
28
  <config>
29
  <modules>
30
- <OM_NewOrderId>
31
  <active>true</active>
32
  <codePool>community</codePool>
33
- <version>1.0.0</version>
34
- </OM_NewOrderId>
35
  </modules>
36
  </config>
27
  -->
28
  <config>
29
  <modules>
30
+ <OM_Neworderid>
31
  <active>true</active>
32
  <codePool>community</codePool>
33
+ <version>1.0.1</version>
34
+ </OM_Neworderid>
35
  </modules>
36
  </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>prefix-order-id</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>prefix-order-id-1.0.0</summary>
10
- <description>prefix-order-id-1.0.0</description>
11
  <notes>prefix-order-id</notes>
12
- <authors><author><name>Vinit</name><user>Vinit</user><email>contact@orangemantra.com</email></author></authors>
13
- <date>2016-09-10</date>
14
- <time>05:08:25</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="OM_NewOrderId.xml" hash="0c33ef45355754ba447bfc6061ce8b05"/></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.0.0</min><max>5.6.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>prefix-order-id</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>prefix-order-id</summary>
10
+ <description>prefix-order-id</description>
11
  <notes>prefix-order-id</notes>
12
+ <authors><author><name>contact@orangemantra.com</name><user>OrangeMantra</user><email>contact@orangemantra.com</email></author></authors>
13
+ <date>2016-11-10</date>
14
+ <time>07:42:41</time>
15
+ <contents><target name="magecommunity"><dir name="OM"><dir name="Neworderid"><dir name="Helper"><file name="Data.php" hash="3d7ddc1356556a0bbec60c9a7b94517a"/></dir><dir name="Model"><dir name="Eav"><dir name="Entity"><file name="Type.php" hash="5f558ed972d01b38009d6e8a02c773bc"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7685610e3caf387559f24eadb9dac6e4"/><file name="config.xml" hash="73660c8af66166350408f6499e81ea65"/><file name="system.xml" hash="0b070583b91d171efbbbc003ff2bdff5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OM_Neworderid.xml" hash="665523d4cc818e902c901e3e5954d90f"/></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>5.6.18</max></php></required></dependencies>
18
  </package>