coast2co Posted December 13, 2006 Posted December 13, 2006 I just don't to start deleting something and then regret it. I've done: Remove Country and Delete Country search on osCommerce but I didn't find what I was looking for. Maybe I was looking in the wrong place... HELPPP I want offer to US and Territories, Canada, UK and Some European Countries Appreciate any direction Dan B)
radders Posted December 13, 2006 Posted December 13, 2006 On the catalog side in the file includes/funcfions/htmloutput.php replace the existing function of this name by something along these lines with your own list of favourite countries. They will then be the only countries available for shipping and billing addresses: // Creates a pull-down list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries_array = array(array('id' => '222', 'text' => 'United Kingdom')); $countries = tep_get_countries(); $countries_array[] = array('id' => '14', 'text' => 'Austria'); $countries_array[] = array('id' => '20', 'text' => 'Belarus'); $countries_array[] = array('id' => '21', 'text' => 'Belgium'); $countries_array[] = array('id' => '27', 'text' => 'Bosnia and Herzegovina'); $countries_array[] = array('id' => '33', 'text' => 'Bulgaria'); $countries_array[] = array('id' => '53', 'text' => 'Croatia'); $countries_array[] = array('id' => '55', 'text' => 'Cyprus'); $countries_array[] = array('id' => '56', 'text' => 'Czech Republic'); $countries_array[] = array('id' => '57', 'text' => 'Denmark'); $countries_array[] = array('id' => '67', 'text' => 'Estonia'); $countries_array[] = array('id' => '72', 'text' => 'Finland'); $countries_array[] = array('id' => '73', 'text' => 'France'); $countries_array[] = array('id' => '81', 'text' => 'Germany'); $countries_array[] = array('id' => '83', 'text' => 'Gibraltar'); $countries_array[] = array('id' => '84', 'text' => 'Greece'); $countries_array[] = array('id' => '97', 'text' => 'Hungary'); $countries_array[] = array('id' => '98', 'text' => 'Iceland'); $countries_array[] = array('id' => '103', 'text' => 'Ireland'); $countries_array[] = array('id' => '105', 'text' => 'Italy'); $countries_array[] = array('id' => '117', 'text' => 'Latvia'); $countries_array[] = array('id' => '123', 'text' => 'Lithuania'); $countries_array[] = array('id' => '124', 'text' => 'Luxembourg'); $countries_array[] = array('id' => '126', 'text' => 'Macedonia F.Y.R.'); $countries_array[] = array('id' => '132', 'text' => 'Malta'); $countries_array[] = array('id' => '140', 'text' => 'Moldova'); $countries_array[] = array('id' => '150', 'text' => 'Netherlands'); $countries_array[] = array('id' => '160', 'text' => 'Norway'); $countries_array[] = array('id' => '170', 'text' => 'Poland'); $countries_array[] = array('id' => '171', 'text' => 'Portugal'); $countries_array[] = array('id' => '175', 'text' => 'Romania'); $countries_array[] = array('id' => '176', 'text' => 'Russia'); $countries_array[] = array('id' => '236', 'text' => 'Serbia and Montenegro'); $countries_array[] = array('id' => '189', 'text' => 'Slovakia (Slovak Republic)'); $countries_array[] = array('id' => '190', 'text' => 'Slovenia'); $countries_array[] = array('id' => '195', 'text' => 'Spain'); $countries_array[] = array('id' => '203', 'text' => 'Sweden'); $countries_array[] = array('id' => '204', 'text' => 'Switzerland'); $countries_array[] = array('id' => '215', 'text' => 'Turkey'); $countries_array[] = array('id' => '220', 'text' => 'Ukrane'); $countries_array[] = array('id' => '222', 'text' => 'United Kingdom'); $countries_array[] = array('id' => '228', 'text' => 'Vatican City State (Holy See)'); return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters); }
mugitty Posted December 13, 2006 Posted December 13, 2006 There are also a couple of contributions which you might find useful: Active Countries and visible_countries ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.