Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

country options on create account page


phreerider

Recommended Posts

The countries names are in the countries table

 

There are about 3-4 at least that are extreamly long. Scroll the countries dropdown to see which to edit.

Link to comment
Share on other sites

The thing is that it gets list of countries from somewhere else??

 

in the countries table looks like this:

 

          <tr>

           <td class="main"> <?php echo ENTRY_COUNTRY; ?></td>

           <td class="main"> 

<?php

 if ($is_read_only == true) {

   echo tep_get_country_name($account['entry_country_id']);

 } elseif ($error == true) {

   if ($entry_country_error == true) {

     echo tep_get_country_list('country') . ' ' . ENTRY_COUNTRY_ERROR;

   } else {

     echo tep_get_country_name($country) . tep_draw_hidden_field('country');

   }

 } else {

   echo tep_get_country_list('country', $account['entry_country_id']) . ' ' . ENTRY_COUNTRY_TEXT;

 }

?></td>

         </tr>

Link to comment
Share on other sites

Peek in /includes/functions/general.php and find

 

function tep_get_countries_name

 

function tep_get_countries

 

function tep_get_countries_name calls function tep_get_countries which does a lookup in the countries table to get the names.

 

So ... edit the countries table to shorten the countries_name do not mess up the other fields as they are codes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...