|
7 | 7 | <body> |
8 | 8 | <h1 style=" text-align: center;">Postal Code Automatic documentation</h1> |
9 | 9 | <p> </p> |
10 | | - <p style="margin-left: 20px;">Postal Code Automatic v2.0.0 (or newer) is an |
| 10 | + <p style="margin-left: 20px;">Postal Code Automatic v2.0.x is an |
11 | 11 | encapsulated plugin for Zen Cart v2.1 and above that automatically fills |
12 | 12 | state, city and if available street address fields in a form when you |
13 | 13 | enter postal/zip code. An Ajax request and JavaScript (jQuery) make this |
@@ -38,7 +38,7 @@ <h3 style="margin-left: 40px;">INSTALL:</h3> |
38 | 38 | <li><strong><em></em></strong>If an <b>old version</b> of this plugin, v1 |
39 | 39 | non encapsulated, is already <b>installed</b>, it is better to <b>uninstall |
40 | 40 | it before</b> you install v2 encapsulated. The plugin installer can do |
41 | | - it automatically. For that, you have to edit the file <code>zc_plugins/PostAuto/v2.0.0/installer/ScriptedInstaller.php</code> |
| 41 | + it automatically. For that, you have to edit the file <code>zc_plugins/PostAuto/v2.0.1/installer/ScriptedInstaller.php</code> |
42 | 42 | . Just uncomment this line (33):<br> |
43 | 43 | <code> <i> </i><b>$this->removeOldNonencapsulatedPostauto();</b></code> |
44 | 44 | <br> |
@@ -71,7 +71,7 @@ <h3 style="margin-left: 40px;">UNINSTALL:</h3> |
71 | 71 | <p style="margin-left: 80px;"><em><strong>Note:</strong></em></p> |
72 | 72 | <p style="margin-left: 120px;">If you want to keep postal codes tables when |
73 | 73 | uninstalling, you can do it by commenting out the appropriate line |
74 | | - (between 40 and 48) in file <code>zc_plugins/PostAuto/v2.0.0/installer/ScriptedInstaller.php</code>.</p> |
| 74 | + (between 55 and 63) in file <code>zc_plugins/PostAuto/v2.0.1/installer/ScriptedInstaller.php</code>.</p> |
75 | 75 | <h3 style="margin-left: 40px;"> UPDATING ZONES ID:</h3> |
76 | 76 | <p style="margin-left: 40px;">When you add zones for a country listed in |
77 | 77 | this plugin after the plugin was installed, you can update zones ids in |
@@ -134,18 +134,18 @@ <h3 style="margin-left: 40px;"> BUILDING A NEW COUNTRY TABLE DATA:</h3> |
134 | 134 | <p style="margin-left: 40px;"> - Finally, few files need to be |
135 | 135 | updated/created: </p> |
136 | 136 | <ul style="margin-left: 40px;"> |
137 | | - <li>Create a new file <code>zc_plugins/PostAuto/v2.0.0/installer/sql/zone_to_post_code_{NewCountryCode}.php</code>. |
| 137 | + <li>Create a new file <code>zc_plugins/PostAuto/v2.0.1/installer/sql/install/zone_to_post_code_{NewCountryCode}.php</code>. |
138 | 138 | Look at other files in same folder to reproduce the structure.</li> |
139 | | - <li>Update file <code>zc_plugins/PostAuto/v2.0.0/catalog/includes/classes/ajax/zcAjaxPostcodeQuery.php</code>. |
| 139 | + <li>Update file <code>zc_plugins/PostAuto/v2.0.1/catalog/includes/classes/ajax/zcAjaxPostcodeQuery.php</code>. |
140 | 140 | In the 'switch' loop you need to add a 'case' for the new country. You |
141 | 141 | can copy an existing one and modify country code and SQL request |
142 | 142 | especially if you have street data or not.</li> |
143 | | - <li>Update file <code>zc_plugins/PostAuto/v2.0.0/installer/ScriptedInstaller.php</code>. |
| 143 | + <li>Update file <code>zc_plugins/PostAuto/v2.0.1/installer/ScriptedInstaller.php</code>. |
144 | 144 | In function <code>executeUninstall()</code>, add a line like this:<br> |
145 | 145 | <span style="margin-left: 80px;"><code>$this->executeInstallerSql("DROP |
146 | 146 | TABLE IF EXISTS " . TABLE_ZONES_TO_POST_CODE_{NewCountryCode});</code></span></li> |
147 | | - <li>Update files <code>zc_plugins/PostAuto/v2.0.0/admin/includes/extra_datafiles/postcode_auto__database_names.php</code> |
148 | | - and <code>zc_plugins/PostAuto/v2.0.0/catalog/includes/extra_datafiles/postcode_auto__database_names.php</code>. |
| 147 | + <li>Update files <code>zc_plugins/PostAuto/v2.0.1/admin/includes/extra_datafiles/postcode_auto__database_names.php</code> |
| 148 | + and <code>zc_plugins/PostAuto/v2.0.1/catalog/includes/extra_datafiles/postcode_auto__database_names.php</code>. |
149 | 149 | add a line like this:<br> |
150 | 150 | <span style="margin-left: 80px;"><code>zen_define_default('TABLE_ZONES_TO_POST_CODE_{NewCountryCode}', |
151 | 151 | DB_PREFIX . 'zones_to_post_code_{NewCountryCode}');</code></span></li> |
|
0 commit comments