X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Call me stoopid - but what have I done here???? (https://forum.x-cart.com/showthread.php?t=2287)

Tye 04-14-2003 07:01 AM

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 -

adpboss 04-14-2003 03:02 PM

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

As for the rest of your question, you can call me Stoopid! :)

Alan 04-15-2003 10:21 PM

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);
?>


Tye 04-16-2003 01:25 AM

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

Its just one of those gremlin things

Thanks anyway


All times are GMT -8. The time now is 12:57 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.