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

Call me stoopid - but what have I done here????

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-14-2003, 07:01 AM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default Call me stoopid - but what have I done here????

Hi

I was editing the register.tpl (and I reckon I've done a good job) - BUT now when I view it, its displaying the countries in reverse order (Z-A). This is the code I have:

Code:
<select name=s_country size=1> {section name=country_idx loop=$countries} <option value={$countries[country_idx].country_code} {if $userinfo.s_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""}selected{/if}> {$countries[country_idx].country} </option> {/section} </select>

What have I done???

I was also playing with phpMyAdmin around the same time - is it something I have changed in here??

Whilst I'm on subject, is it possible to specify a country to display to start with, e.g. USA -
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #2  
Old 04-14-2003, 03:02 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

You can set the default country in the admin, General Settings.

As for the rest of your question, you can call me Stoopid!
Reply With Quote
  #3  
Old 04-15-2003, 10:21 PM
 
Alan Alan is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 83
 

Default

Hello Tye, have you changed any codes in the include/countries.php by chance? Anyhow try this:
Code:
<? # $Id: countries.php,v 1.10 2002/11/14 07:58:18 zorg Exp $ # # # Put all countries into countries array # $countries = func_query("select country, code as country_code from $sql_tbl[countries] order by country ASC"); $smarty->assign("countries",$countries); ?>
__________________
Best Regards!
Alan
Search is my friend
Reply With Quote
  #4  
Old 04-16-2003, 01:25 AM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default

Thanks for your answers adpboss and Alan - but still no joy.

Its just one of those gremlin things

Thanks anyway
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
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 01:14 AM.

   

 
X-Cart forums © 2001-2020