grungefreak1 Posted September 19, 2007 Posted September 19, 2007 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.
Nullachtfuffzehn Posted September 19, 2007 Posted September 19, 2007 tep_draw_hidden_field('country', 103); should do the trick instead of the dropdown box.
grungefreak1 Posted October 18, 2007 Author Posted October 18, 2007 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
Guest Posted October 18, 2007 Posted October 18, 2007 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.
DejaVu Posted November 27, 2007 Posted November 27, 2007 Fantastic tip. Sorted me right out. Thanks for that (222 is UK) peeps. :)
palq4o Posted February 11, 2008 Posted February 11, 2008 Hi do you know what is the county number for Bulgaria ? 10x
asylum119 Posted July 19, 2009 Posted July 19, 2009 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') . ' ' . (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>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.