Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move Country to Top


screams

Recommended Posts

Posted

There used to be an article in the Knowledge base describing how to move a particular country (e.g. the U.S.) to the top of the countries pull-down list.

 

I bookmarked it but the bookmark now points to a sort of "best of KB" page and I cannot find the article.

Posted
There used to be an article in the Knowledge base describing how to move a particular country (e.g. the U.S.) to the top of the countries pull-down list.

 

I bookmarked it but the bookmark now points to a sort of "best of KB" page and I cannot find the article.

 

 

I couldn't find it there either. But here's what you can do.

 

223 is the code for the US

 

 

MODIFY catalog/create_account.php

 

FIND:

php echo tep_get_country_list('country')

 

REPLACE with:

 

php echo tep_get_country_list('country', '223')

 

 

MODIFY catalog/includes/modules/address_book_details.php

 

FIND:

 

<?php echo tep_get_country_list('country', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>

 

REPLACE with:

 

<?php echo tep_get_country_list('country', '223', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>

 

Enjoy!

  • 4 weeks later...
  • 1 year later...

Archived

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

×
×
  • Create New...