huggettm Posted November 20, 2006 Share Posted November 20, 2006 i want to have a different frontpage on my site (from the cubecart on) so inned to change the homepage links on shop and cart. can anyone tell me where to do this? i am using the killer skin. thankyou Quote Link to comment Share on other sites More sharing options...
roban Posted November 20, 2006 Share Posted November 20, 2006 1. Homepage Link in Categories List on the Store Homepage To change this link, OPEN skins/xx/styleTemplates/boxes/categories.tpl FIND this code: Classic or Legend skin: <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li> Killer skin: <td class="topCatsTabMid"><a href="index.php" class="txtCat">{LANG_HOME}</a></td> REPLACE index.php with the new link you wish to point to, example http://www.mysite.com SAVE the file and UPLOAD the altered file to your webserver. 2. Hompage Link in Useful Links box on the Store’s Cart Pages To change this link, OPEN includes/boxes/cart.inc.php FIND this code: $links[] = array ( 'link' => "index.php", 'text' => $lang['front']['boxes']['homepage']); Please note that the code 'link' => "index.php", appears elsewhere in this file, but you need to change the one in the block above that calls for ‘homepage’ from the language file. Again, you simply replace index.php with the URL that you want the link to point to. SAVE the file and UPLOAD the altered file to your webserver. 3. Do you wish to change the text, “Homepage� If you also prefer to change the text “Homepage†so that it says “Home†or something else, you will need to alter the language file. This is the best method of making it consistent on both the store pages and the cart/registration pages. To change this text, OPEN language/xx/lang.inc.php At around line 1464 FIND the code: 'homepage' => "Homepage", PLEASE NOTE that this code appears more than once in the file, and the line number will probably be very different for you . . . You need only change the code that appears below the section $lang['front']['boxes'] = array( and change only the part shown in red above! Change Homepage to whatever you want the text to be for your new links. SAVE the file and UPLOAD the altered file to your webserver. The above text is copied from markscart's wonderful tutorial on changing links. Quote Link to comment Share on other sites More sharing options...
huggettm Posted November 20, 2006 Author Share Posted November 20, 2006 thats brilliant thankyou, i also need to change it on the cart navigation tho..... :innocent: Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 20, 2006 Share Posted November 20, 2006 "2. Hompage Link in Useful Links box on the Store’s Cart Pages" The second part of my tutorial above tells you how to change cart navigation :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.