Sample of moving PostCode and City Sections:
Move in /catalog/view/theme/default/template/account/register/register.tpl:
Code: Select all
<tr>
<td><span id="postcode-required" class="required">*</span> <?php echo $entry_postcode; ?></td>
<td><input type="text" name="postcode" value="<?php echo $postcode; ?>" />
<?php if ($error_postcode) { ?>
<span class="error"><?php echo $error_postcode; ?></span>
<?php } ?></td>
</tr>
<tr>
<td><span class="required">*</span> <?php echo $entry_city; ?></td>
<td><input type="text" name="city" value="<?php echo $city; ?>" />
<?php if ($error_city) { ?>
<span class="error"><?php echo $error_city; ?></span>
<?php } ?></td>
</tr>
<tr>
In the:
catalogue/model/checkout/order.php
catalogue/model/ebay/order.php
catalogue/controller/account/order.php
possibly in other files also, I have not checked all of them yet
find:
Code: Select all
$replace = array(
'firstname' => $order_info['shipping_firstname'],
'lastname' => $order_info['shipping_lastname'],
'company' => $order_info['shipping_company'],
'address_1' => $order_info['shipping_address_1'],
'address_2' => $order_info['shipping_address_2'],
'postcode' => $order_info['shipping_postcode'],
'city' => $order_info['shipping_city'],
'zone' => $order_info['shipping_zone'],
'zone_code' => $order_info['shipping_zone_code'],
'country' => $order_info['shipping_country']
Modify two sections to look like:
Code: Select all
$replace = array(
'firstname' => $order_info['shipping_firstname'],
'lastname' => $order_info['shipping_lastname'],
'company' => $order_info['shipping_company'],
'address_1' => $order_info['shipping_address_1'],
'address_2' => $order_info['shipping_address_2'],
'postcode' => $order_info['shipping_postcode'],
'city' => $order_info['shipping_city']
so, it will not longer display anything after the City on the Order Sheet.
In other Sections of the order.php, possibly also in other files, some Lines contain >>{city} {postcode}<<, wich would have to be changed to: >>{postcode} {city}<<, check about it. There is just ONE empty space between the 2 variables, they exist in several files troughout the software. You won't destroy anything doing this, other mod's are much more dangerous to screw up.
Make backups of every file before overrwiting them!!!
Get to it piece by piece, check everything somehow related to it, check your Error-Infos in the admin Section, be careful!
Good Luck!
Ernie
ipc.li/cart/