discopig Posted April 19, 2011 Share Posted April 19, 2011 hi guys, just wondering hows ot i edit the actual fieldnames of the fields in the create account page eg: i want the street address field to say "House name or Number" I can see the following code in the "create_account.php" <tr> <td class="fieldKey"><?php echo ENTRY_STREET_ADDRESS; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('House Name or Number') . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> and i changed it to: <tr> <td class="fieldKey"><?php echo house_name; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('House Name or Number') . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> But i can't get rid of the underscore between house and name and if i just put "house name" it wont load the page any help appreciated thanks Link to comment Share on other sites More sharing options...
FIMBLE Posted April 19, 2011 Share Posted April 19, 2011 you do this in the constants folder.... For every top level file like index.php, create_account.php etc.. there is a language folder, so in each of the languages ENTRY_STREET_ADDRESS means something else, its listed like this define('ENTRY_STREET_ADDRESS', 'Your address'); for english, then espanol instead of "Your Address" it will be in Spanish. you will find these files in your catalog / includes / languages / some are in the file english.php (or other language installed) you also have mirrored files inde.php, create_account.php inside the catalog / includes / languages /english/ folder, so for your query look inside the file catalog / includes / languages / english / create_account.php and look for ENTRY_STREET_ADDRESS, then change the wording to suit make sure its stays within the apostrophes Hope this helps! Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
discopig Posted April 19, 2011 Author Share Posted April 19, 2011 Hi there, and thanks for your reply. when i got to the file you specified, in catalog / includes / languages /english/ this is the only code within: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Create an Account'); define('HEADING_TITLE', 'My Account Information'); define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small><strong>NOTE:</strong></small></font> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.'); define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME); define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n"); define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n"); define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n"); define('EMAIL_WELCOME', 'We welcome you to <strong>' . STORE_NAME . '</strong>.' . "\n\n"); define('EMAIL_TEXT', 'You can now take part in the <strong>various services</strong> we have to offer you. Some of these services include:' . "\n\n" . '<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><strong>Address Book</strong> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><strong>Order History</strong> - View your history of purchases that you have made with us.' . "\n" . '<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers.' . "\n\n"); define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n"); define('EMAIL_WARNING', '<strong>Note:</strong> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n"); ?> i dont see ENTRY_STREET_ADDRESS anywhere Link to comment Share on other sites More sharing options...
FIMBLE Posted April 19, 2011 Share Posted April 19, 2011 OK, in that case it will be in the english.php file. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
discopig Posted April 19, 2011 Author Share Posted April 19, 2011 i figured it out! :) thanks for your help Link to comment Share on other sites More sharing options...
FIMBLE Posted April 19, 2011 Share Posted April 19, 2011 No Problem, and well done :-) Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.