Forums / Managing Customers and Orders / Want to delete City field in customer info

Want to delete City field in customer info

Locked

Views: 1,543

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 Nov 2008, 6:06 AM
#1
reselus avatar

reselus

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Want to delete City field in customer info

for customer info there is a CITY field

I want this field not showing again because I already join City and Province as one field together

when signup, account modification, checkout there is always show the CITY field, how and where to modify it so it not show again

26 Nov 2008, 7:27 AM
#2
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Want to delete City field in customer info

includes/templates/your_template/templates/tpl_modules_create_account.php (your_template is the actual name of your template this is only a reference)

Around line 78 and 79 change from

<label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label>
<?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>

to

<label class="inputLabel" for="city"><?php [B]//[/B]echo ENTRY_CITY; ?></label>
<?php [B]//[/B]echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>

Notice the red marks were put in place (comment out)

This will remove the CITY field but also leave it there incase you ever want to put it back

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered