Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Default state

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-28-2009, 09:30 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Question Default state

I need to do a slight tweak to my site i have searched this forum but there seems to be no full answers given. What i would like to do is on the customer registration page the county/state box defaults to the first alaphbetical name in the list, some customers are leaving the county/state at the default setting which is not correct for their address.
My solution is to create another state which will then be the default with a blank box (no text). Where is the list of county's/states in x-cart and will this work.

Tony
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #2  
Old 01-28-2009, 02:30 PM
 
Rob_D Rob_D is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 62
 

Default Re: Default state

The States and Countries are in your admin/management menu.

I added a state "**please select**". I made the state abbr. AA, so if sorted alphabetically, it would be at the top.

Make sure to check all browsers, because the javascript is handled differently. I beleive one of them (firefox I think) sorts by the primary field in the database, so you have to do a little manipulation.

Rob
__________________
4.1.11
Rob Dolliver

www.jessicasonline.com
Xcart Skin - Fashion Mosaic
X-Cart 4 Level Horizonal Flyout Menus
alteredCart One Page Checkout
alteredCart Buy Together
CDSEO
Reply With Quote
  #3  
Old 01-29-2009, 09:21 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Default state

Thanks Rob are you saying that i can edit the list in admin if so where is the list as i have checked all the sub menu's under admin/managment and don't have the list of states, may be i am missing a sub menu as i have had in the past because of a incompetent installation.

Tony
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #4  
Old 01-29-2009, 09:35 AM
 
Rob_D Rob_D is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 62
 

Default Re: Default state

Yes. In mine, it is just under "countries". A menu called "states". Just above "stop list"

Rob
__________________
4.1.11
Rob Dolliver

www.jessicasonline.com
Xcart Skin - Fashion Mosaic
X-Cart 4 Level Horizonal Flyout Menus
alteredCart One Page Checkout
alteredCart Buy Together
CDSEO
Reply With Quote
  #5  
Old 01-29-2009, 10:58 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Default state

It looks like i don't have that sub menu do you know how i can enable that sub menu.

Tony
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #6  
Old 01-29-2009, 03:16 PM
 
Rob_D Rob_D is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 62
 

Default Re: Default state

I am sorry, Tony, I don't. It was there when I installed Xcart. I am pretty new at this stuff. Hopefully an expert can jump in here.

Rob
__________________
4.1.11
Rob Dolliver

www.jessicasonline.com
Xcart Skin - Fashion Mosaic
X-Cart 4 Level Horizonal Flyout Menus
alteredCart One Page Checkout
alteredCart Buy Together
CDSEO
Reply With Quote
  #7  
Old 01-30-2009, 07:04 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Default state

Thanks Rob i have a feeling it may be supposed to be in skin1/admin/menu.tpl, if it is i do not have the states.tpl so i will need the code,can anybody help me out with this one.

Cheers Tony
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #8  
Old 01-30-2009, 07:32 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Default state

<a href="{$catalogs.admin}/states.php" class="VertMenuItems">{$lng.lbl_states}</a><br />

Goes in skin1/admin/menu.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 01-30-2009, 07:55 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: Default state

Thanks again Balinor it works a treat, what i don't understand is i have just had my site upgraded to 4.1.11 by x-cart so why was the states sub menu still missing.
For anybody who reads this thread i cut and paste the code supplied by balinor into skin1/admin/menu.tpl below
{include file="modules/Stop_List/stop_list_menu.tpl"}<br />

Cheers Tony
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #10  
Old 01-30-2009, 07:57 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Default state

If it was removed before they upgraded, upgrading wouldn't have added it back. Upgrading just edits code in existing files, it doesn't replace files.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:53 PM.

   

 
X-Cart forums © 2001-2020