Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change the create account page


kenneth59

Recommended Posts

Posted

Im in the US, when people create an account, in the address section, i would prefer it to be in the order of STREET ADDRESS, CITY, STATE, ZIP CODE, etc.

 

Rather than what its set to now which is Street Address, Post Code, City, State, Country. I suppose "post code" is a UK thing?

 

Anyway, it doesnt seem to be in the create_account.php. Am i looking in the wrong place and is it even possible to easily change the order.

Posted

It is also a Canadian thing as well. OSCommerce is extraordinary in that it is written for a world-wide audience, and works.

Not only will you need to do as Burt mentions above in order to get the 'post code' positioned below the state as is normal for a US audience, but to change the text itself go to includes/languages/english and change

define('ENTRY_POST_CODE', 'Post Code:');

 

to

 

define('ENTRY_POST_CODE', 'Zip Code:');

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Posted

In your create account.php file you should find something similar to

 

<tr>
    <td class="fieldKey"><?php echo ENTRY_POST_CODE; ?></td>
    <td class="fieldValue"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
  </tr>

 

To move it after the city code is simply a case of pasting the code after wnere it mentions city inthe same file so add it before

 

<tr>
    <td class="fieldKey"><?php echo ENTRY_COUNTRY; ?></td>
    <td class="fieldValue"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
  </tr>

 

Whilst you are at it you may as well change ('country') to ('country','223') which will default the drop down list to always start on USA. It will save your customers some time.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

thank you both very much and thanks a lot steve for the country change as well. A couple simple questions though if you will,

 

1. in the create_account.php where it actually says the words POST CODE in several places, i leave that alone correct?

2. by changing all what you said, it will not affect anything thing else? In other words, in the shipping part of the cart, etc, meaning it will all work as it has?

 

Yes you are correct OSC is excellent piece of work i believe. My online store is not live until a week from now. I actually have 2 stores, one is the real one that will be uploaded and the other is a test store so as i can make changes to it before i make them to the real store.

Posted

Leave the words POST CODE in create_account.php alone (just for grins change the spelling a bit and watch what happens), you change what POST CODE displays as in includes/language/english.php

Note that the POST CODE will display in different languages. In general whenever you see some bit of php code in all caps, it is calling out the text from some file in the language folder. The all caps code is all part of how OSCommerce can switch languages.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Posted

Ok someone please tell me the deal here.

 

As stated above i have 2 osc sites, one will be the actual real store, the other one is a test site for making changes before i do the changes on the real site, trying things out etc. I want to screw up the test site before i screw up the actual site.

 

Ok, now on the changes steve suggested about changing the country to 223, on the test site that worked good, but on the real site it has to be set to 241 for it to show the United States in the pull down.

 

Also on the test site all the zones are listed in the admin section. On the real site no USA zones were listed, i had to add the state i was in to the list.

 

Can someone tell me what the deal is?

Posted

Country ID's should never be referenced in this way, as country ID's can change...they are nothing but a reference in the database and mean nothing in the real world. The only ever present for a country is it's ISO code, do we have a ISO code to ID function - I can't recall.

 

If your shop is based in the same country as most of your customers, try this:

 

('country', STORE_COUNTRY)
Posted

Burt, cant i just get rid of all countries in the admin except the one im in since my store is local or at the very least only in the USA. Wouldnt that get rid of the pull down menu when they create an account and only leave the usa as the only choice?

Posted

Country ID's should never be referenced in this way, as country ID's can change...they are nothing but a reference in the database and mean nothing in the real world. The only ever present for a country is it's ISO code, do we have a ISO code to ID function - I can't recall.

 

If your shop is based in the same country as most of your customers, try this:

 

('country', STORE_COUNTRY)

 

ok burt do i change the 'country' to 'united states' or 'us'

Archived

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

×
×
  • Create New...