Jump to content



Latest News: (loading..)

- - - - -

Single Country on Registration


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#-19   grungefreak1

grungefreak1
  • Members
  • 21 posts

Posted 19 September 2007 - 09:00 PM

Hi,

My online shop only sells to Ireland. Is it possible to have Ireland as the only country available upon registration? Or remove it and have it as a hidden field so as to satisfy the "Insert" statement in the code?

Any work arounds or suggestions welcome?

Grungefreak.

#-18   Nullachtfuffzehn

Nullachtfuffzehn
  • Members
  • 1,639 posts

Posted 19 September 2007 - 10:12 PM

tep_draw_hidden_field('country', 103); should do the trick instead of the dropdown box.

#-17   grungefreak1

grungefreak1
  • Members
  • 21 posts

Posted 18 October 2007 - 08:36 PM

View PostNullachtfuffzehn, on Sep 19 2007, 11:12 PM, said:

tep_draw_hidden_field('country', 103); should do the trick instead of the dropdown box.
Hi,

can you let me know where that  piece of code would go please?

Thanks

GF

#-16   BeauCowan

BeauCowan
  • Members
  • 211 posts

Posted 18 October 2007 - 08:48 PM

View Postgrungefreak1, on Oct 18 2007, 01:36 PM, said:

Hi,

can you let me know where that  piece of code would go please?

Thanks

GF

I have my code altered, so I can't give you an exact line number, but do a search for tep_get_country_list, and you'll see where it is located at.  Just do what he said and add in the code of the country that you want to display first.  The numbers are in the countries table, and if you are in the U.S.A., the number for it is 223.

#-15   DejaVu

DejaVu
  • Members
  • 289 posts

Posted 27 November 2007 - 11:06 PM

Fantastic tip. Sorted me right out. Thanks for that (222 is UK) peeps. :)

#-14   palq4o

palq4o
  • Members
  • 1 posts

Posted 11 February 2008 - 05:01 PM

Hi do you know what is the county number for Bulgaria ?
10x

#-13   asylum119

asylum119
  • Members
  • 6 posts

Posted 19 July 2009 - 01:37 AM

View Postgrungefreak1, on Sep 19 2007, 09:00 PM, said:

Hi,

My online shop only sells to Ireland. Is it possible to have Ireland as the only country available upon registration? Or remove it and have it as a hidden field so as to satisfy the "Insert" statement in the code?

Any work arounds or suggestions welcome?

Grungefreak.


having the same problem also
However i have removed the country from the sign up page

go to catalog/create_account.php
find

<td class="main"><?php echo ENTRY_COUNTRY; ?></td>
                <td class="main"><?php echo tep_get_country_list('country') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

change that to

<td class="main"><?php //echo ENTRY_COUNTRY; ?></td>
                <td class="main"><?php //echo tep_get_country_list('country') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>