Whiskers Posted November 28, 2009 Posted November 28, 2009 I want to change the "checkout" link in the nav bar to something else. Can this be done? Thanks in advance!
StarburstHosting Posted November 29, 2009 Posted November 29, 2009 Hi there Are you wanting to change the word 'checkout' to another word keeping the link the same or are you wanting to change/add more links? HTH Rob My advice is personal and not from my company. Use it at your own risk! Rules. 1. Backup before making any changes. 2. Try one thing at a time. 3. Write down all steps you take. 4. Make any changes on a development server/domain before on a live site. 5. BACKUP
Whiskers Posted November 29, 2009 Author Posted November 29, 2009 Hi there Are you wanting to change the word 'checkout' to another word keeping the link the same or are you wanting to change/add more links? HTH Rob I want to change the link or even add a new link and keep that there. Does that make sense? Cheers.
StarburstHosting Posted November 29, 2009 Posted November 29, 2009 The file that controls the link is catalog/includes/header.php around line 64 look for <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> This is the navigation section, the actual links e.g. <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"> are defined in catalog/includes/filenames.php to create a new link copy one of the existing ones and give it a unique name. The actual wording in the link e.g. <?php echo HEADER_TITLE_CART_CONTENTS; ?> are defined in catalog/languages/english.php (or your language). To change the text find the relevant link, note its name and change the text in the language file. To create new text for your link copy an existing text and give it a unique name and the text you want. For example you want a link called My Page to go to www. mypage .com in catalog/includes/filenames.php add define('FILENAME_MYPAGE', 'http://www.mypage.com'); in catalog/languages/english.php add define('HEADER_TITLE_MYPAGE', 'My Page'); and finally in catalog/includes/header.php add where you want the link to be <a href="<?php echo tep_href_link(FILENAME_MYPAGE); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MYPAGE; ?></a> HTH Rob My advice is personal and not from my company. Use it at your own risk! Rules. 1. Backup before making any changes. 2. Try one thing at a time. 3. Write down all steps you take. 4. Make any changes on a development server/domain before on a live site. 5. BACKUP
reciecup Posted December 2, 2009 Posted December 2, 2009 i tried this and it did not work for me. I am using hostgator as my host. I installeld OsC into the root of my site (home/public_html/). I then installed Cppermine Photogallery into a folder called Gallery ( /public_html/gallery ). I am trying to add a link to my OsC store that will take my customer's to my CopperMine Gallery. I was able to get the link to show up at the top of the page. However, when I click on it I get an error stating the following Forbidden You don't have permission to access /http://www.rendercandy.com/gallery/index.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request Is there a fix for this. Or have I done something wrong? Thanks in advance for any help. :D If it helps at all, here is my site RenderCandy and here is the Coppermine Gallery that I am trying to link it to RenderCandy - Gallery You can see the link I created at the top right behind Checkout in the OsC store.
Whiskers Posted February 6, 2010 Author Posted February 6, 2010 Right I am eventually going to do something with the really useful information, but I want to knwo how to put the links in the header. I want them in the same position pretty much, just up a bit. :) How can that be done? The file that controls the link is catalog/includes/header.php around line 64 look for <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> This is the navigation section, the actual links e.g. <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"> are defined in catalog/includes/filenames.php to create a new link copy one of the existing ones and give it a unique name. The actual wording in the link e.g. <?php echo HEADER_TITLE_CART_CONTENTS; ?> are defined in catalog/languages/english.php (or your language). To change the text find the relevant link, note its name and change the text in the language file. To create new text for your link copy an existing text and give it a unique name and the text you want. For example you want a link called My Page to go to www. mypage .com in catalog/includes/filenames.php add define('FILENAME_MYPAGE', 'http://www.mypage.com'); in catalog/languages/english.php add define('HEADER_TITLE_MYPAGE', 'My Page'); and finally in catalog/includes/header.php add where you want the link to be <a href="<?php echo tep_href_link(FILENAME_MYPAGE); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MYPAGE; ?></a> HTH Rob
Recommended Posts
Archived
This topic is now archived and is closed to further replies.