Skip to content

Commit 0d24bdb

Browse files
Add files via upload
1 parent aa6d148 commit 0d24bdb

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

app/code/ID/Zipcodes/etc/module.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3+
<module name="ID_Zipcodes" setup_version="1.0.0">
4+
</module>
5+
</config>
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Directory:etc/zip_codes.xsd">
3+
<zip countryCode="GR">
4+
<codes>
5+
<code id="pattern_1" active="true" example="123 45">^[0-9]{3}\s[0-9]{2}$</code>
6+
<code id="pattern_2" active="true" example="12345">^[0-9]{5}$</code>
7+
</codes>
8+
</zip>
9+
</config>

app/code/ID/Zipcodes/registration.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
\Magento\Framework\Component\ComponentRegistrar::register(
3+
\Magento\Framework\Component\ComponentRegistrar::MODULE,
4+
'ID_Zipcodes',
5+
__DIR__
6+
);

0 commit comments

Comments
 (0)