Guest Posted September 22, 2005 Share Posted September 22, 2005 Does anyone know if there is a way to make the Category breadcrumb at the top og the boxContent a link When you go into the Product page the trail isn't a link, but it would be very useful if it was as a quick way back to the category index. Im in the process of heavily modifying the cart visually, as the shopping functionality only needs adding at a later date. But the above query is really bugging me. (if i get it all working i'll liscense cart and the search engine friendly mod, which seems brilliant) an example of the problem can be seen http://lcp4.hotchilli.net/~blues14682/stor...y-desk/p_8.html how can i get Location: » C3 Cantilever Desking to be a link back to the category? Cheers Tim Quote Link to comment Share on other sites More sharing options...
kinetic Posted September 22, 2005 Share Posted September 22, 2005 search the forum this has been discussed and has a well thought out hack search category links or breadcrumb heres one... http://www.cubecart.com/site/forums/index....=category+links Quote Link to comment Share on other sites More sharing options...
Guest Posted September 22, 2005 Share Posted September 22, 2005 Cheers, i did that, but the only hack/s i could find, completely cocked up the search engine friendly mod up. I tried this one for example and that starts setting the page title etc to a link, or at least tries to, so you get the <a href = ..... as the title. Any other ideas Edit: yep thats the one i tried and it was a no go :ninja: Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted September 22, 2005 Share Posted September 22, 2005 This is what i did for 3.0.2. Looks like the same change should work for 3.0.3, but I haven't tried it yet. This is different to the code in that other thread. The if() statement in the following code prevents the category name being a link when you're viewing the category itself. Edit includes/functions.inc.php Replace: $dirArray[0] = $config['dirSymbol'].$catName; With: // When viewing a product, provide link to its category if(isset($_GET['act']) && $_GET['act']=="viewProd") { $dirArray[0] = $config['dirSymbol']."<a href='".$GLOBALS['rootRel']."index.php?ccUser=".$sessId."&catId=".$catId."&act=viewCat' class='txtLocation'>".$catName."</a>"; } else { $dirArray[0] = $config['dirSymbol'].$catName; } Quote Link to comment Share on other sites More sharing options...
Guest Posted September 22, 2005 Share Posted September 22, 2005 Ta, but still causing problems have a butchers : http://lcp4.hotchilli.net/~blues14682/stor...turns/p_12.html its changing the title again also changing the whole url for the category page link works though :D Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted September 22, 2005 Share Posted September 22, 2005 Personally i think the problem is with your search engine friendly mod Why would the search engine friendly mod be using the same function (getCatDir) to create the page title? Because the getCatDir function has always put html links into the output. Did the search engine friendly mod also require changes to the getCatDir function? Quote Link to comment Share on other sites More sharing options...
kinetic Posted September 22, 2005 Share Posted September 22, 2005 no on the get catDir and the SEO titles Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted September 22, 2005 Share Posted September 22, 2005 :unsure: Sorry, i don't understand what you're saying kinetic. redbak, you only made the change in one spot, in getCatDir() in functions.inc.php, yeah? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 22, 2005 Share Posted September 22, 2005 was a tadge short the answer by Kinetic. Estelle, yes i only made the one change you said. Im using the search engine mod in the downloads section. If i cant get it to work, i will stick with the seo mod as its more important but it would be nice if i could do both. Cheers Tim Quote Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 25, 2005 Share Posted September 25, 2005 In functions.inc.php make this change if you have the search engine friendly mod on and want to make this mod. Remember getCatDir() function is used not only to create links but also return the category structure hence it is vital you check whether the caller requested it to be returned as links. Replace $dirArray[0] = $config['dirSymbol'].$catName; with this if($link == TRUE){ /* <rf> search engine friendly mods */ if($config['sef'] == 0) { Â Â $dirArray[0] = $config['dirSymbol']."<a href='".$GLOBALS['rootRel']."index.php?ccUser=".$sessId."&catId=".$catId."&act=viewCat' class='txtLocation'>".$catName."</a>"; } else { Â Â $dirArray[0] = $config['dirSymbol']."<a href='".$GLOBALS['rootRel']."index.php?act=viewCat&catId=".$catId."' class='txtLocation'>".$catName."</a>"; Â } /* <rf> end mod */ } else { Â $dirArray[0] = $config['dirSymbol'].$catName; } p.s I haven't tested this so use at your own risk :( Quote Link to comment Share on other sites More sharing options...
Guest tbladecki Posted September 25, 2005 Share Posted September 25, 2005 Take a look at my site and see if that is what you are looking for.... I have a breadcrumb trail that allows you to click on the links to the dirs above. If so I will copy the code that i entered to do it and post it for you. Mine has worked fine and i have not had any problems, I do not have the search mod installed and I am using 3.0.2 Quote Link to comment Share on other sites More sharing options...
Guest rukiman Posted September 26, 2005 Share Posted September 26, 2005 I forgot to mention that snippet I posted will work regardless of whether you have the search engine friendly mod installed or not. Quote Link to comment Share on other sites More sharing options...
Guest Posted September 26, 2005 Share Posted September 26, 2005 Rukiman, that i owe you one. That works spot on http://lcp4.hotchilli.net/~blues14682/stor...-desk/p_19.html I will be getting the mod liscensed before long. Thanks again Tim Quote Link to comment Share on other sites More sharing options...
Guest treecom Posted December 26, 2006 Share Posted December 26, 2006 Anyone having problems with V3.0.14? I am having problems with the category links in V3.0.14 Look here http://shop.amainobj.com/index.php?act=vie...amp;productId=1 and here http://shop.amainobj.com/index.php?ccUser=...amp;act=viewCat and see the difference. Quote Link to comment Share on other sites More sharing options...
Guest dreamdancer Posted December 27, 2006 Share Posted December 27, 2006 ^ I am having same problem, is there a fix somewhere? Quote Link to comment Share on other sites More sharing options...
Guest treecom Posted December 28, 2006 Share Posted December 28, 2006 anyone got any clue on this problem? Quote Link to comment Share on other sites More sharing options...
Guest Posted December 30, 2006 Share Posted December 30, 2006 I figured it out, it was a third party CC mod causing the problem. I have it fixed. Contact me if you want to know what I did. 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.