drzac2003 Posted February 20, 2014 Share Posted February 20, 2014 Hi, First post on this forum and mainly because I am totally stuck! I do try to resolve things before resorting to asking for help but here goes:- Running CC5.2.7 and the Crosshatch Skin I have 2 categories in my store and a few products in each category; it's not going to be a massive store. Problem is, on the homepage (where I have "welcome to the store blah blah blah) I have the logo on the left, the Homepage as a navigation link and that is it. I want to have the categories listed here as well but can't see how to get them there. In fact, if you look at the homepage, there is no navigation at all. Very confused. Any help would be appreciated. Thanks. Dave Quote Link to comment Share on other sites More sharing options...
horsthuis Posted February 20, 2014 Share Posted February 20, 2014 Do you mean this?http://www.cubecartforums.org/index.php?autocom=downloads&showfile=702 Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 20, 2014 Author Share Posted February 20, 2014 Not exactly. this is the site at the moment. If you look to the right of the heart, there is Homepage link; I simply wanted the 2 category names next to this. Also, if you look just below the heart, you will see the Home link as well. At the moment, there is no naviagtion taking you to the categories so how does anyone know we are selling anything? If you click the featured product, you then get some navigation in the bar below the heart (I think it is the Breadcrumb???) - sorry, quite noobie at this but hope this makes sense. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 Welcome drzac2003! Glad to see you made it to the forums. "First post on this forum and mainly because I am totally stuck! I do try to resolve things before resorting to asking for help." Please do not do that here in these forums. Attempting to express your situation concisely and completely, calmly and cogently, is nearly impossible when you've pulled out all your hair. Been there - done that. What I don't see is the screenshot of your skin modifications in the original post. "I have 2 categories in my store and a few products in each category." That eliminates the cause being the admin setting "Hide empty categories." But we still may have categories that need to be enabled (admin, Categories, Visible and Status columns are green ticks). And what of the products themselves? In Products, the Status column... all green ticks? And you say your are editing the Crosshatch skin? While you are doing this, please set admin, Store Settings, Advanced tab, 'Enable Cache' to disabled. This will stop CubeCart from using cached versions of rendered skin files, thus revealing changes made to the skin immediately. I have a concern that perhaps you have confused the skin so that the categories do not show up. Please do this: in the skin template file element.navigation_tree.php, at the end of the file, add this: {debug}. This will cause CubeCart to open a pop-up window showing all of the variables assigned to this template. In the pop-up, look for the variable $BRANCH in the left pane. Let us know what are its values. The 'Home' link that is at the left edge of the brown-ish colored bar is the beginning of the Breadcrumb trail. Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 21, 2014 Author Share Posted February 21, 2014 Hi Bsmither, Thanks for your response. On your advice, I have doubled checked all the categories and products and they all have green ticks in both Visible and Status. Enable Cache is disabled. I have made a few changes to the main.php file but this was only commenting out the display of the logo at the bottom of the screen, removing the search box and the language indicator at the top of the screen. Below is the $BRANCH result from the debug:- Smarty_Variable Object (3)->value = Array (3) name => "Wow Cupcakes Offer" cat_id => "2" url => "http://wow-bakes.com/wow-cupcakes-off..."->nocache = false->scope = "file:templates/element.navigation_tre..." What is interesting here is, the above name "Wow Cupcakes Offer" I just made visible this morning (just prior to doing the above) and this category shows on the homepage; the other 2 (Cookie Mix Jars and Chocolate Bags) still do not appear. To make a further test, I have just created another category and called it Test, but this also does not display - very confusing The 3 categories that do not display (Cookie Mix Jars, Chocolate Bags and now Test) are exactly the same attributes as the Wow Cupcakes Offer category that does display; i.e. all have Parents of /, no images, no translations etc. I will post screenshot next..................... Thanks, Dave Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 21, 2014 Author Share Posted February 21, 2014 If it helps, element.navigation_tree.php only has the following code in it :- <li> <a href="{$BRANCH.url}">{$BRANCH.name}</a> {if isset($BRANCH.children)} <ul> {$BRANCH.children} </ul> {/if} </li> {debug} Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 21, 2014 Share Posted February 21, 2014 Cookie Mix Jars, Chocolate Bags and now Test do not show. Wow Cupcakes Offer does show. Remind us: which of these four categories have products in them? Please check in Store Settings, Layout tab, 'Display Empty Categories'. If the setting is No, set it to Yes. If it is already at Yes, Set it to No, save the settings, then set back to Yes. On the storefront, I assume products within these categories show in the Latest Products area? This is very interesting: name => "Wow Cupcakes Offer"cat_id => "2" It seems like Wow Cupcakes Offer should be the third category you created, yet has a cat_id of 2 (there is no cat_id of zero). When viewing Categories, do the ID numbers match the chronological order you created the categories? Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 21, 2014 Author Share Posted February 21, 2014 Yep, have done all that. The only categories with products in are the Cookie Mix Jars and Chocolate Bags - the other 2 are empty. Wow Cupcakes Offer was the 2nd Category created; the cookie mix was the 1st and choco bags 3rd and the ID's are in that order. Test has ID 6 but that is because I created and deleted catefories whilst trying to get this to work. All products show up as Latest products on homepage. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 21, 2014 Share Posted February 21, 2014 Lets try, for just a moment, switching to the Kurouto skin. If the missing categories are still missing, then we can look at the PHP code. If they show up, we need to look at the edits to the Crosshatch skin. Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 21, 2014 Author Share Posted February 21, 2014 Nope, still the same. I did try changing all the skins but they are all the same. I think something out of the ordinary has happened; maybe I should delete everything and start again? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 21, 2014 Share Posted February 21, 2014 "Maybe I should delete everything and start again?" That's up to you. I would at least keep a copy of the edited Crosshatch skin. Personally, I would dig in as deep as I could for as long as it took me - but then, I don't have a shop to make money from. Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 24, 2014 Author Share Posted February 24, 2014 Have decided to upgrade to CC528 and see if it helps and also look at putting the skin back to default and starting it again. Will let you know what happens Quote Link to comment Share on other sites More sharing options...
drzac2003 Posted February 25, 2014 Author Share Posted February 25, 2014 OK, it seems that v5.2.8 now has a Category Visible option, ticking these seems to have done the job - quick back up before anything else goes wrong 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.