Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to allow only 1 country to select to checkout?


vina

Recommended Posts

Posted

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!

Posted
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!

 

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

Posted

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

Posted

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.

Posted

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!

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...