vina Posted December 27, 2004 Posted December 27, 2004 Hi, Please help to write this statement to allow customers to select only 1 country in the country list for delivery address, because we only deliver within Japan. <?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?> In other words, only 1 country display in the drop-down country list. Thanks!
cbacani Posted December 27, 2004 Posted December 27, 2004 Hi, Please help to write this statement to allow customers to select only 1 country in the country list for delivery address, because we only deliver within Japan. <?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?> In other words, only 1 country display in the drop-down country list. Thanks! <{POST_SNAPBACK}> I read somewhere in this Forum that you need to remove (one at a time ) all of the other languages from within the Admin Control Panel. Good Luck
Rob123 Posted December 27, 2004 Posted December 27, 2004 Try this using your favorite sql tool such as phpmyadmin or SQLyog. delete from countries where countries_name <> 'Japan'; Backup First!!! Hope that helps, Robert
vina Posted December 28, 2004 Author Posted December 28, 2004 Thanks! But I still need the country list for purchaser, because my customers around the world order items for their family in Japan only. Therefore, I only need to query 1 country from the list for checkout_new_address field. Again, thanks.
vina Posted December 28, 2004 Author Posted December 28, 2004 Hi, I still looking for help to select only 1 country in the checkout_new_address.php and still keep the whole country list for purchaser (buyer around the world) but only ship to Japan (only 1 delivery country). Rather than having the whole list of country, I only need 1 country (Japan) to display as delivery country for checkout. Thanks for any help!
Daemonj Posted December 28, 2004 Posted December 28, 2004 I assume that you have a tax zone for Japan already created. If so, in Admin > Modules > Shipping set the Shipping Zone for all of your shipping options to that zone. If the delivery address is not in Japan no shipping options will be provided thus preventing checkout. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Recommended Posts
Archived
This topic is now archived and is closed to further replies.