Post by openjanis » Thu Mar 20, 2014 10:35 am

Open cart version : 1.5.6.1

Im struggling 4 days now without any success in editing registration/checkout pages so they are without extra forms
I edited tpl and php but with many errors so im asking for help if someone can give me ready files and i could upload them in needed places

Registration page: If someone could give me files what need to have so registration form is without these things
* Telephone:
Fax:
Company:
Company ID:
* Address 1:
Address 2:
* City:
* Post Code:
* Country:
* Region / State:


And Guest checkout without these:
* Telephone:
Fax:
Company:
Company ID:
* Address 1:
Address 2:
* City:
* Post Code:
* Country:
* Region / State:


I was trying editing myslef but with errors what i couldnt fix if someone could give me files and i could upload them in ftp server .

:-[ :-\

Newbie

Posts

Joined
Thu Mar 20, 2014 10:27 am

Post by MarketInSG » Thu Mar 20, 2014 11:11 pm

Try our Quick Checkout extension and Quick Registration extension. You can do a quick search in the extension directory


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by IP_CAM » Fri Mar 28, 2014 3:51 am

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/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 1 guest