Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Posts
    4
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,030
    Plugin Contributions
    13

    Default 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

    Code:
    <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

    Code:
    <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>': ''); ?>
    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

 

 

Similar Threads

  1. Want to add another e-mail address field to customer account
    By MelodyW in forum Managing Customers and Orders
    Replies: 1
    Last Post: 27 Feb 2013, 03:34 PM
  2. v139f How to make "City" field not mandatory?
    By Pxtures in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 31 May 2012, 01:14 PM
  3. adding tele# to ship to field in customer info
    By Blooms in forum Managing Customers and Orders
    Replies: 4
    Last Post: 5 May 2008, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR