rayjuan Posted September 10, 2010 Posted September 10, 2010 hi all. been working on this all day. still cant seem to figure out how to edit the following concerns i have below. as per attached image below, i would just like to rename my button title > create and account to About Us and subsequently linking that to about_us.php do i need to create an extra file called about_us.php ? can i just simply duplicate the conditions.php file and renaming it to about_us.php? then redirecting the initial create an account link that was pointing to create_account.php to about_us.php? would really Appreciate your kind assistance in this.. thanks so much guys Rae
FIMBLE Posted September 10, 2010 Posted September 10, 2010 The best page to use would be something like the shipping.php file. i have made a walk through for this http://addons.oscommerce.com/info/6791 the images for the links you will need to create and up load, then simply change the existing link to point to the correct URL Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
rayjuan Posted September 10, 2010 Author Posted September 10, 2010 hi nic, thanks for your advice but i think it would be ideal if you could actually help guide me thru the correct steps in my situation above. the link provided does help me add pages but dosent really tell me exactly which files to edit. may i know which file do i edit just to change the menu button (Create An Account) , i couldnt find it in the index.php file please help !
rayjuan Posted September 10, 2010 Author Posted September 10, 2010 hi guys i found the file under /includes/language/english.php // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'USD'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="en"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // page title define('TITLE', STORE_NAME); // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Catalog'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); i will be changing the create an account text to about us. but now how do i point it to about_us.php file? thanks!
Guest Posted September 10, 2010 Posted September 10, 2010 Ray, You are using a custom template so there is no way of knowing the exact code that needs to be corrected. You should look in the header.php file which is usually where that code would be found in templates. You are looking for the current LABEL and then the <a href......> for it. Once you find it, you can change the label and <a href> so it points to the correct page. Chris
rayjuan Posted September 10, 2010 Author Posted September 10, 2010 Good day chris! thanks for the heads up, i have found the code under header.php ></td> <?php if (tep_session_is_registered('customer_id')) { $acc_link = tep_href_link('account.php'); $acc_title= HEADER_TITLE_MY_ACCOUNT; } else{ $acc_link = tep_href_link('create_account.php'); $acc_title= HEADER_TITLE_CREATE_ACCOUNT; } so now all i have to do is to creeate an about_us.php and point it there? may i know the steps to this. i believe i would need to upload 2 about_us.php files under the language/english/ folder and /includes folder? thank you!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.