kenneth59 Posted November 1, 2013 Posted November 1, 2013 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.
burt Posted November 1, 2013 Posted November 1, 2013 You need to change blocks of code around in create_account.php That is all.
npn2531 Posted November 1, 2013 Posted November 1, 2013 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
kenneth59 Posted November 2, 2013 Author Posted November 2, 2013 burt, its not obvious to me which to switch, am i missing something
♥14steve14 Posted November 2, 2013 Posted November 2, 2013 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
kenneth59 Posted November 2, 2013 Author Posted November 2, 2013 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.
npn2531 Posted November 2, 2013 Posted November 2, 2013 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
kenneth59 Posted November 3, 2013 Author Posted November 3, 2013 jase yeah i did change those words and seen it had the words outside the boxes on the sign up page )
kenneth59 Posted November 3, 2013 Author Posted November 3, 2013 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?
burt Posted November 3, 2013 Posted November 3, 2013 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)
kenneth59 Posted November 3, 2013 Author Posted November 3, 2013 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?
kenneth59 Posted November 3, 2013 Author Posted November 3, 2013 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'
burt Posted November 3, 2013 Posted November 3, 2013 You change nothing more than what I stated. Open up create_account.php and revert your changes as detailed here: http://www.oscommerce.com/forums/topic/395003-change-the-create-account-page/#entry1684214 and instead use: ('country', STORE_COUNTRY)
kenneth59 Posted November 4, 2013 Author Posted November 4, 2013 Thank you Burt, it worked perfectly :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.