EdC Posted April 15, 2013 Share Posted April 15, 2013 Hi, I've been using prestashop for a few months now and just want to know if there is a way to display some of my categories in the top horizontal menu ONLY, and not in the left hand category column. I still want to display the bulk of my categories in the left hand side column but I want a select few to appear in the top horizontal menu only. I hope that was clear. Any help would be much appreciated. Link to comment Share on other sites More sharing options...
vekia Posted April 15, 2013 Share Posted April 15, 2013 Well, it is possible but in this case you have to make some modification of tpl file, i mean that you have to add some {if} conditions, where you will check the id of category. If id == id category which you want to hide - then don't display it, hope it is clear Link to comment Share on other sites More sharing options...
EdC Posted April 16, 2013 Author Share Posted April 16, 2013 Thanks. Much appreciated. Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 I wonder If you could offer me any help on that coding? Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2013 Share Posted May 2, 2013 please let me know the ID of categories you want to hide, what presatashop version you use and give me some info about your theme - it is default? or some external solution? waiting for your reply - then i will prepare code for U 1 Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 (edited) thanks for quick reply. I'm using prestashop 1.5.3.1 with the default theme. My categories are 'mens watches' and 'ladies watches'. many thanks for your help Edited May 7, 2013 by EdC (see edit history) Link to comment Share on other sites More sharing options...
jd.creative Posted May 2, 2013 Share Posted May 2, 2013 (edited) thanks for quick reply. I'm using prestashop 1.5.3.1 with the default theme. My categories are 'mens watches' and 'ladies watches'. many thanks for your help ps this is my shop you can see where i'm trying to take those categories of the main category list on the left: http://saysales.co.uk/index.php you need to provide the actual ID's not the name, in the admin area, go to your categories, you will see a list of your categories, to the left of the names of the categories, you will see a number, each one has it's own unique number, these are ID's, and these are what you will need to use in the IF statements. EDIT: Having said that, I looked at your site, and went to mens watches and ladies watches, and realised that the ID number is actually in the URL. Men's watches ID is 17 Ladies watches ID is 18 Edited May 2, 2013 by jd.creative (see edit history) Link to comment Share on other sites More sharing options...
jd.creative Posted May 2, 2013 Share Posted May 2, 2013 I've only be working with Prestashop for 2 days, so I'm not a pro, but I believe this should work: go to 'modules/blockcategories' find the file called 'blockcategories.tpl' and open it find the bit that looks like this: {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $smarty.foreach.blockCategTree.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child} {/if} {/foreach} And change it to this: {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $category->id != 17 and $category->id != 18} {if $smarty.foreach.blockCategTree.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child} {/if} {/if} {/foreach} Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 thanks for your help. I've changed the file as you've suggested but they are still coming up! Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 may have changed wrong part give me a min will try again Link to comment Share on other sites More sharing options...
jd.creative Posted May 2, 2013 Share Posted May 2, 2013 I'll test on my one too Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 tried again. no success! Link to comment Share on other sites More sharing options...
jd.creative Posted May 2, 2013 Share Posted May 2, 2013 Sorry EdC, I don't know what it is. It'll be something like that, I expect it's the '$category->Id' bit that's wrong, but I have no idea what it should be. Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 ok well thanks jd.creative for your try anyway. nice to know there are people out there who are willing to help!!! 1 Link to comment Share on other sites More sharing options...
jd.creative Posted May 2, 2013 Share Posted May 2, 2013 Haha, this isn't exactly the most active forum in the world. Would be nice to see a moderator (or at least and experienced PrestaShop user) chime in sometime soon! Link to comment Share on other sites More sharing options...
EdC Posted May 2, 2013 Author Share Posted May 2, 2013 well the moderator vekia replied to me earlier! Thanks all for the help. Link to comment Share on other sites More sharing options...
jd.creative Posted May 2, 2013 Share Posted May 2, 2013 That's true, I'll be watching this topic to see how it's solved. Link to comment Share on other sites More sharing options...
SweetDreamHome Posted August 28, 2013 Share Posted August 28, 2013 (edited) Hi. I had this problem and i think I found the solution without any coding work. Is not 100% as I wished but this is what I have done. I am selling goods for the home and on the left I wanted to have the product categories and on the top I wanted to Have search By room, and Your style ( still adding these on) and on those I wanted subcategories to show under by room the hallway, living room etc. Right! It doesn't show the subcategories when we scroll the mouse over the top menu but at least my categories are showing on top menu only. The way I did it was to create a test category under Home (root category) Under that I created Search By room Category and Under that I am still creating my sub categories they are sub-sub categories but looking at the front end no one will tell. With the test category activated to display, on the front end I copied the sub category URL (search By room) then on the CMS under preferences (sorry I meant on the top category module under modules) i created a link and called it the same Search By Room and entered the URL. Then Back to categories I hidden the test category. Et voila! Working! I am so glad with my today achievement that I thought sharing could save some other lives http://94.136.40.103...mhome.co.uk/en/ Edited August 28, 2013 by SweetDreamHome (see edit history) Link to comment Share on other sites More sharing options...
sagaryadav Posted August 28, 2013 Share Posted August 28, 2013 Hi. I had this problem and i think I found the solution without any coding work. Is not 100% as I wished but this is what I have done. I am selling goods for the home and on the left I wanted to have the product categories and on the top I wanted to Have search By room, and Your style ( still adding these on) and on those I wanted subcategories to show under by room the hallway, living room etc. Right! It doesn't show the subcategories when we scroll the mouse over the top menu but at least my categories are showing on top menu only. The way I did it was to create a test category under Home (root category) Under that I created Search By room Category and Under that I am still creating my sub categories they are sub-sub categories but looking at the front end no one will tell. With the test category activated to display, on the front end I copied the sub category URL (search By room) then on the CMS under preferences i created a link and called it the same Search By Room and entered the URL. Then Back to categories I hidden the test category. Et voila! Working! I am so glad with my today achievement that I thought sharing could save some other lives http://94.136.40.103...mhome.co.uk/en/ Hello Friend, I went to your website. You have put that ipad slideshow still in your shop. Your's is a home shop - I do not think you want it there. You can remove it by uninstalling the module HomeSlider or by unhooking the HomeSlider module. Best of luck. Link to comment Share on other sites More sharing options...
SweetDreamHome Posted August 28, 2013 Share Posted August 28, 2013 Thank you. If you see the link that is not the live version. As I am still editing the website so those images will change in due course. So by the time it is accessible to general public (when I change the name servers) it will look better with the offers I will run at the time eheh. But thank you very much all suggestions are appreciated 1 Link to comment Share on other sites More sharing options...
EdC Posted August 29, 2013 Author Share Posted August 29, 2013 Hi SweetDreamHome that was very clever i like it!!! I may be a bit too far down the line to re-categorise my shop like that but I understand how you did it and will consider it thanks. PS i really like the top logo graphic and the purple colour that you have added to change the look of the top of the page. Would love to know how you did that.(although it probably doesn't fit in with this topic . Link to comment Share on other sites More sharing options...
SweetDreamHome Posted August 29, 2013 Share Posted August 29, 2013 (edited) Hi EdC thank you for the compliments. It is very rewarding as I am not a developer at all so I am learning at each step and I am loving it The way I have changed the header was on the global.css do ctl + f find Header (on mine is on line 545) and where it says header {position: relative} add another line inside the comment so it shows like this #header {position:relative; background: transparent url('http://94.136.40.103/~sweetdreamhome.co.uk/themes/default/img/header.png'); } I added an image but you can add a colour instead if you want to then you just need to enter background: #fff or any other colour code you want I hope this helps. Even thought it is a separate topic. Cheers Edited August 29, 2013 by SweetDreamHome (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now