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.
Latest News: (loading..)
Single Country on Registration
Started by grungefreak1, Sep 19 2007 09:00 PM
6 replies to this topic
#1
Posted 19 September 2007 - 09:00 PM
#2
Posted 19 September 2007 - 10:12 PM
tep_draw_hidden_field('country', 103); should do the trick instead of the dropdown box.
#4
Posted 18 October 2007 - 08:48 PM
grungefreak1, on Oct 18 2007, 01:36 PM, said:
Hi,
can you let me know where that piece of code would go please?
Thanks
GF
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.
#5
Posted 27 November 2007 - 11:06 PM
Fantastic tip. Sorted me right out. Thanks for that (222 is UK) peeps.
#6
Posted 11 February 2008 - 05:01 PM
Hi do you know what is the county number for Bulgaria ?
10x
10x
#7
Posted 19 July 2009 - 01:37 AM
grungefreak1, 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.
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') . ' ' . (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') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>









