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

editing "country" in my register.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-16-2004, 12:09 PM
 
Jeremy Denton Jeremy Denton is offline
 

Member
  
Join Date: Nov 2003
Location: Detroit, MI
Posts: 21
 

Default 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>
__________________
Jeremy Denton
248.342.9962
www.Wolverinesden.com

Xcart Version 3.4.4 (yes I\'ll be upgrading soon)
Unix.
Reply With Quote
  #2  
Old 01-17-2004, 02:12 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you could remove or deactivate all countries apart from US in the countries list
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 01-17-2004, 04:14 AM
 
Jeremy Denton Jeremy Denton is offline
 

Member
  
Join Date: Nov 2003
Location: Detroit, MI
Posts: 21
 

Default

That is what I wanted to do.

The problem is, I dont know what to remove to do that.
__________________
Jeremy Denton
248.342.9962
www.Wolverinesden.com

Xcart Version 3.4.4 (yes I\'ll be upgrading soon)
Unix.
Reply With Quote
  #4  
Old 01-17-2004, 04:37 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 01-17-2004, 05:10 AM
 
Jeremy Denton Jeremy Denton is offline
 

Member
  
Join Date: Nov 2003
Location: Detroit, MI
Posts: 21
 

Default

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.
__________________
Jeremy Denton
248.342.9962
www.Wolverinesden.com

Xcart Version 3.4.4 (yes I\'ll be upgrading soon)
Unix.
Reply With Quote
  #6  
Old 01-17-2004, 05:18 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 01-17-2004, 05:26 AM
 
Jeremy Denton Jeremy Denton is offline
 

Member
  
Join Date: Nov 2003
Location: Detroit, MI
Posts: 21
 

Default

can it be deleted? if I decide to go back to international orders?
__________________
Jeremy Denton
248.342.9962
www.Wolverinesden.com

Xcart Version 3.4.4 (yes I\'ll be upgrading soon)
Unix.
Reply With Quote
  #8  
Old 01-17-2004, 05:31 AM
 
Jeremy Denton Jeremy Denton is offline
 

Member
  
Join Date: Nov 2003
Location: Detroit, MI
Posts: 21
 

Default

i applied it and it said it "failed".

So, yet again. what text do I remove.
__________________
Jeremy Denton
248.342.9962
www.Wolverinesden.com

Xcart Version 3.4.4 (yes I\'ll be upgrading soon)
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 09:13 PM.

   

 
X-Cart forums © 2001-2020