Post by kukalex » Wed Apr 30, 2014 2:56 am

Hello,
I'm creating a pizza delivery e-shop for a small provincial town, so some fields are totally unnecessary for me on the registration form and I'd like to remove them. Can someone give to me some instructions how to do this?
I do not use the default opencart template.
The fields listed below should be removed:
company
Address 2 (or it could be change to 'floor'. Very imporant info for a delivery)
city
Postcode
country
region

I think I know the first step, is to delete from ..catalog / view / theme / mynewtheme / template / register.tpl the rows of the 'city' for example like this...
<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>

and then ...catalog / language / english / account / register.php deleting respectively the line...
$ _ ['entry_city'] = ' City ';

This is all I know up to here, but I'm sure that it doesn't finish here.
Can anybody help me with that skill..??

Thanks in advance!!

User avatar
New member

Posts

Joined
Tue Nov 13, 2012 5:43 pm
Location - Athens

Post by NoJoke » Thu May 08, 2014 9:12 am

You can possibly set the value of those fields manually since it will be all the same since nothing will go outside the city.. and then hide those fields from showing since they will always have that value set even when hidden so when the submit the order it will go through and show the correct city and providence/town and country.

You can change the address 2 box in the language file to floor or Suite/APT/Other

Active Member

Posts

Joined
Fri Oct 14, 2011 5:37 am
Who is online

Users browsing this forum: No registered users and 109 guests