osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Create Account Feature, missing State field

This is a discussion on Create Account Feature, missing State field within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, How can I add the state field to my Create Account located at: http://www.roseysmall.com/catalog/create_account....


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-31-2004, 11:44 PM
Lurker
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rose1212
Default Create Account Feature, missing State field

Hi,

How can I add the state field to my Create Account located at: http://www.roseysmall.com/catalog/create_account.php I don't know where to find this and I'm afraid to mess it up if I touch it (like a few other things I've broken).

Thank you, yet again, for your help.

Rose
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-01-2004, 09:34 AM
New Member
 
Join Date: Jan 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ozcsys
Default Re: Create Account Feature, missing State field

Quote:
Originally Posted by rose1212
Hi,

How can I add the state field to my Create Account located at: http://www.roseysmall.com/catalog/create_account.php I don't know where to find this and I'm afraid to mess it up if I touch it (like a few other things I've broken).

Thank you, yet again, for your help.

Rose
I just did this a couple of weeks ago and while I do not remember exactly what I changed I am pretty sure it was this part of the code:


if (ACCOUNT_STATE == 'true') {
$zone_id = 0;
$check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'");
$check = tep_db_fetch_array($check_query);
$entry_state_has_zones = ($check['total'] > 0);
if ($entry_state_has_zones == true) {
$zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')");
if (tep_db_num_rows($zone_query) == 1) {
$zone = tep_db_fetch_array($zone_query);
$zone_id = $zone['zone_id'];
} else {
$error = true;

to this:

if (ACCOUNT_STATE == 'true') {
$zone_id = 0;
$check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '223" . (int)$country . "'");
$check = tep_db_fetch_array($check_query);
$entry_state_has_zones = ($check['total'] > 0);
if ($entry_state_has_zones == true) {
$zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '223" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')");
if (tep_db_num_rows($zone_query) == 1) {
$zone = tep_db_fetch_array($zone_query);
$zone_id = $zone['zone_id'];
} else {
$error = true;



You can also find a good thread on the topic at:

http://forums.oscommerce.com/index.php?showtopic=53879

Hope this helps

Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Missing Create and account button.. hdgajjar osCommerce 2.2 Modification Help 1 04-10-2006 04:57 PM
State List Missing on Signup form zTech osCMax v1.7 Discussion 4 09-27-2004 06:53 PM
State list missing on Create Account Page zTech osCMax v1.7 Discussion 1 09-13-2004 08:15 AM
account page - state drop down kodersoftware osCMax v1.7 Discussion 2 05-28-2004 09:31 AM
Create Account,Checkout,My Account, Language Pictures probs! Mikey osCommerce 2.2 Installation Help 0 03-08-2004 11:20 PM


All times are GMT -8. The time now is 12:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax