If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / re: problem after removing "state"

re: problem after removing "state"

Locked

Started by tim2009 on 28 Mar 2009, 12:46 PM · Views: 981

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Mar 2009, 12:46 PM
#1
tim2009 avatar

tim2009

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Post #1 by tim2009

Hi,

I would like to remove "State" from the customer registration page, but when I removed it from admin, there is a blank line between "City" and "Postcode", it looks like this:

First Name Last Name
Address 1
Address 2
City

PostCode
Country

Does anyone know how to fix it?

also, can someone please confirm Ireland does not need "County" in address format?

thank you in advance!

28 Mar 2009, 1:29 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #2 by haredo

tim2009:

Hi,

I would like to remove "State" from the customer registration page, but when I removed it from admin, there is a blank line between "City" and "Postcode", it looks like this:

First Name Last Name
Address 1
Address 2
City

PostCode
Country

Does anyone know how to fix it?

also, can someone please confirm Ireland does not need "County" in address format?

thank you in advance!

Tim,
includes/ templates/ your_template/ templates/ tpl_module_create_account.php

Find this:

<?php
  if (ACCOUNT_STATE == 'true') {
    if ($flag_show_pulldown_states == true) {
?>
<label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
<?php
      echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
      if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert">' . ENTRY_STATE_TEXT . '</span>'; 
    }
?>

<?php if ($flag_show_pulldown_states == true) { ?>
<br class="clearBoth" id="stBreak" />
<?php } ?>
<label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
<?php
    echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"');
    if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
    if ($flag_show_pulldown_states == false) {
      echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
    }
?>
<br class="clearBoth" />
<?php
  }
?>
  1. delete it or comment it out
  2. save your changes, and upload to the server
  3. your_template is the custom folder for your site

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Mar 2009, 4:50 PM
#3
tim2009 avatar

tim2009

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Post #3 by tim2009

Hi, haredo

Thank you so much for your help!

I did what you said, but the blank link still there, is there another place need to be edited as well?

thanks!

Tim

29 Mar 2009, 4:33 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #4 by haredo

Tim,
Are you using a template bought from someone????
If so what is the name of the template????

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

29 Mar 2009, 10:06 AM
#5
tim2009 avatar

tim2009

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Post #5 by tim2009

haredo:

Tim,
Are you using a template bought from someone????
If so what is the name of the template????

No, I don't!

I copied "classic" and named it as my owned template.

thanks!

Tim

29 Mar 2009, 1:12 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #6 by haredo

Tim,
Need a link to the site.
This makes no sense, I tested my #2 post on a fresh install, and their is no blank spot.
Are you sure you edited your_template file??

Please post the tpl_modules_create_acccount.php file please

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.