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)
-   -   editing "country" in my register.tpl (https://forum.x-cart.com/showthread.php?t=6060)

Jeremy Denton 01-16-2004 12:09 PM

editing "country" in my register.tpl
 
At this time I do not offer international shipping. The problem is, I keep getting customers from other countries registering. I would like my register page to default to United States.

How can I rewrite the code to fix that?

Here is the code for "country" in Register.tpl

Quote:

<tr valign=middle>
<td align=right>{$lng.lbl_country}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<select name=b_country>
{section name=country_idx loop=$countries}
<option value={$countries[country_idx].country_code} {if $userinfo.b_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq #default_country# and $userinfo.b_country eq ""}selected{/if}>{$countries[country_idx].country}</option>
{/section}
</select>
</td>
</tr>

shan 01-17-2004 02:12 AM

you could remove or deactivate all countries apart from US in the countries list

Jeremy Denton 01-17-2004 04:14 AM

That is what I wanted to do.

The problem is, I dont know what to remove to do that.

shan 01-17-2004 04:37 AM

You could run this sql statement

Code:

DELETE FROM xcart_countries WHERE code != 'US'

that basically removes any country from the database wher the country code is not US

yuo can do this in phpmyadmin or from the patch upgrade area in your admin

Jeremy Denton 01-17-2004 05:10 AM

yet again. this does not help me. I need this to be dummied down for me. my knowledge of code is very limited.

if you could put that into the list of code I posted so that I could cut and paste it. That would be very helpful.

shan 01-17-2004 05:18 AM

this is an sql statement.

copy and paste it into the text area where you can run sql statements on the patch/upgrade page in your stores admin area

Jeremy Denton 01-17-2004 05:26 AM

can it be deleted? if I decide to go back to international orders?

Jeremy Denton 01-17-2004 05:31 AM

i applied it and it said it "failed".

So, yet again. what text do I remove.


All times are GMT -8. The time now is 03:46 AM.

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