Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    106
    Plugin Contributions
    0

    Default How to remove the zip code field?

    We dont have any postal codes in my country (Ireland) and we usually go through all kinds of strange guess work to just complete registration on many sites,so I would just like to completely remove this from my Zen cart-if someone knows the procedure,I would appreciate it

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: How to remove the zip code field

    Two procedures to undertake:

    1. using phpMyAdmin, you need to allow the PostCode field to be NULL. Right now it's "required" - it cannot be "Null".

    2. After you have altered the database field property, you need to go into all the php files where the postcode field is called, and comment out that section of PHP

    For example:

    In the file: tpl_modules_create_account.php

    The following:
    PHP Code:
    <label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE?></label>
    <?php echo zen_draw_input_field('postcode'''zen_set_field_length(TABLE_ADDRESS_BOOK'entry_postcode''40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' ENTRY_POST_CODE_TEXT '</span>'''); ?>
    <br class="clearBoth" />
    Is given this treatment:
    HTML Code:
    <!--<label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />-->
    20 years a Zencart User

 

 

Similar Threads

  1. Zip Code field out of line
    By charmlt in forum Managing Customers and Orders
    Replies: 6
    Last Post: 14 Jul 2014, 08:36 PM
  2. shipping zip code... how to remove it?
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Aug 2011, 04:10 AM
  3. how do I make zip-code field in log-in page non-mandetory?
    By preet in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Sep 2007, 01:50 PM
  4. How Do I Remove the Post/Zip Code Field?
    By bearaman in forum General Questions
    Replies: 9
    Last Post: 20 Jun 2007, 09:39 PM

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