Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Country Field


dragonfoundry

Recommended Posts

Our core business market will be the UK and thus have no requirement for the country field on the customer registration page.

 

Is there a way to remove it?

 

 

Delete or comment out these lines of your \catalog\includes\column_right.php

 

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

-----------------------------------------------------------------------------

Adam

 

Get your osc documentation here:

http://www.oscommerce.info/

Link to comment
Share on other sites

Delete or comment out these lines of your \catalog\includes\column_right.php

  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

    include(DIR_WS_BOXES . 'languages.php');

    include(DIR_WS_BOXES . 'currencies.php');

 

 

Thants for the reply but I have done that.

 

Where the client fills in their name, address, etc to register with the site it is the drop down box for the countries that im trying to remove.

Link to comment
Share on other sites

Thants for the reply but I have done that.

 

Where the client fills in their name, address, etc to register with the site it is the drop down box for the countries that im trying to remove.

 

 

Oh, then go to your admin and check what you have in Location / Taxes under Countries. You can remove them from there.

-----------------------------------------------------------------------------

Adam

 

Get your osc documentation here:

http://www.oscommerce.info/

Link to comment
Share on other sites

Yes, you can remove the countries, but not the drop down box that way. However you can cut it down to just the one country that people can select - the UK in your case. It's much quicker to remove the other countries via the database in phpMyAdmin provided you know how to do that. To remove the drop down box itself, well the drop downbox is a required field and removing it entirely from the Create Account page will need a lot of work in both create_account.php and in includes/languages/english.php.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...