yadav.kumar Posted February 12, 2013 Posted February 12, 2013 Hello, I would like to have the mouse hover effect on the categories block on the left. Instead of [+], I need the user just hover the mouse over the category and it will displays the subcategories in it. Something like the mouse hover effect on the Top Horizontal Menu. When you click Home button in it, It will open a jquery based drop down menu and hovering the mouse over a category displays the subcategories. I need the same on the left categories block. Someone helps ! Thank you Regards, Yad Share this post Link to post Share on other sites More sharing options...
febykw Posted March 22, 2013 Posted March 22, 2013 i need too.. please help.. Share this post Link to post Share on other sites More sharing options...
hsmonline Posted June 13, 2013 Posted June 13, 2013 Anyone figured this out yet? Share this post Link to post Share on other sites More sharing options...
mankomal Posted July 11, 2013 Posted July 11, 2013 Any update did some one find a solution to this ? Share this post Link to post Share on other sites More sharing options...
vekia Posted July 11, 2013 Posted July 11, 2013 $('span.grower').mouseover(function(){ toggleBranch($(this)); }); use this js function in the /themes/default/js/tools/treeManagement.js file 2 Share this post Link to post Share on other sites More sharing options...
mankomal Posted August 2, 2013 Posted August 2, 2013 $('span.grower').mouseover(function(){ toggleBranch($(this)); }); use this js function in the /themes/default/js/tools/treeManagement.js file Vekia Thanks for your help its working But this code only works when we place the mouse over the + sign or - sign It doesnt works when we place the mouse over the category name How can I make it work over the category name also Cheers Share this post Link to post Share on other sites More sharing options...
justicejustine Posted December 1, 2013 Posted December 1, 2013 Vekia Thanks for your help its working But this code only works when we place the mouse over the + sign or - sign It doesnt works when we place the mouse over the category name How can I make it work over the category name also Cheers I second this too, how can it work when just hovered over the entire category area? Anyone please help or found a solution? Share this post Link to post Share on other sites More sharing options...
vekia Posted December 1, 2013 Posted December 1, 2013 you can add your <li> element class name to the script, it will work similar then. Share this post Link to post Share on other sites More sharing options...
ibndawood Posted December 1, 2013 Posted December 1, 2013 Hi Justine, I'd recommend not to open up the menu on hover instead just keep the default behavior i.e. show the sub category on click. The user has better experience with on click than hover. This is a good read : http://uxmovement.com/navigation/why-hover-menus-do-users-more-harm-than-good/ This is just a recommendation but the client is always right 1 Share this post Link to post Share on other sites More sharing options...
david-k Posted December 3, 2013 Posted December 3, 2013 you can add your <li> element class name to the script, it will work similar then. Thank you very much, this solution works for me very well $('span.grower').mouseover(function(){ toggleBranch($(this)); }); But I still can't figure out how to add the <li> statement to the class to use this script for the name of the category, not only for the +/- sign. Please, can you help me and show me the code that i have to add to treeManagement.js? Thank you so much. Share this post Link to post Share on other sites More sharing options...
vekia Posted December 4, 2013 Posted December 4, 2013 you can use this code in treeManagment.js file add there something like: $('#categories_block_left li').mouseover(function(){toggleBranch($(this));}); Share this post Link to post Share on other sites More sharing options...
david-k Posted December 6, 2013 Posted December 6, 2013 you can use this code in treeManagment.js file add there something like: $('#categories_block_left li').mouseover(function(){ toggleBranch($(this)); }); Thank you very much, it really WORKS! Share this post Link to post Share on other sites More sharing options...
Mani rathnam Posted January 7, 2014 Posted January 7, 2014 (edited) you can use this code in treeManagment.js file add there something like: $('#categories_block_left li').mouseover(function(){ toggleBranch($(this)); }); Hi Vekia, I am new to prestashop.. I have tried this category block hover option. Its working but Only first category is opening on hover. i have added the code inside the ready(function() in treeManagement.js file. is that right? Note : actually i am trying to convert the left block category as look like top menu. I have converted somewhat similar to top menu. Have a look below. http://www.colorconceptions.com/index.php It is working fine when you clicked the category once. So I thought of adding this mouseover concept in the js file to expand the category on hover instead of clicking. Please help. Edited January 7, 2014 by manirathnam1988 (see edit history) Share this post Link to post Share on other sites More sharing options...
Mani rathnam Posted January 7, 2014 Posted January 7, 2014 Hi, Now mouseover option is working when i keep the mouse on open-close.png image. But its not working on the category name. When i move the mouse on category name its not displaying the sub-category. Please help me on this. Thanks in advance. Share this post Link to post Share on other sites More sharing options...
Mani rathnam Posted January 7, 2014 Posted January 7, 2014 Hi, Now mouseover option is working when i keep the mouse on open-close.png image. But its not working on the category name. When i move the mouse on category name its not displaying the sub-category. Please help me on this. Thanks in advance. Hi, Please help me on this. Thanks in advance Share this post Link to post Share on other sites More sharing options...
Mani rathnam Posted January 8, 2014 Posted January 8, 2014 please any one help me on this. Share this post Link to post Share on other sites More sharing options...
auther Posted March 4, 2014 Posted March 4, 2014 you can use this code in treeManagment.js file add there something like: $('#categories_block_left li').mouseover(function(){ toggleBranch($(this)); }); Hello Vekia, Could you please specify the lines of code need to removed / replaced for the above. Thanks. Share this post Link to post Share on other sites More sharing options...
vekia Posted March 4, 2014 Posted March 4, 2014 use it somewhere in module .js file, for example, at the very end of the file Share this post Link to post Share on other sites More sharing options...
Mani rathnam Posted March 5, 2014 Posted March 5, 2014 Hello Vekia, Could you please specify the lines of code need to removed / replaced for the above. Thanks. Hi, I have modified the left category as mouse hover feature. but it is somewhat slow in response (opening the sub-category). visit my test site : http://www.colorconceptions.com/index.php? Steps i have taken: 1. Modify the treeManagement to accept the mouse hover. like Vekia's comment, add the code in js file. 2. then try to modified the CSS of the left category block to accept the mouse hover option. eg: removing the [+] sign, mouse hover option, expand the sub categories towards right side. Please let me know if you need further help. P.S : I am also new to PS, PHP and CSS. I have learned by myself and did this changes. So i am not sure whatever i did is right. Mani Share this post Link to post Share on other sites More sharing options...
auther Posted March 5, 2014 Posted March 5, 2014 use it somewhere in module .js file, for example, at the very end of the file Hello Vekia, I must be doing something wrong, i pasted the code as provided by you at the end of both these files and it still doesn't seem to work themes/default/js/tools/treeManagement.js themes/theme758/js/tools/treeManagement.js PS version 1.5.4.1 Test site: www.sussta.com Thanks, Asif Share this post Link to post Share on other sites More sharing options...
guilhermebarbeiro Posted May 26, 2015 Posted May 26, 2015 I follow this steps but my menu still click to open.Someone can help me? This is my site: http://keroimpresso.com.br/site/index.php Share this post Link to post Share on other sites More sharing options...
guilhermebarbeiro Posted May 29, 2015 Posted May 29, 2015 Someone can help? Share this post Link to post Share on other sites More sharing options...
vekia Posted May 30, 2015 Posted May 30, 2015 I follow this steps but my menu still click to open.Someone can help me? This is my site: http://keroimpresso.com.br/site/index.php where you applied these changes? Share this post Link to post Share on other sites More sharing options...
guilhermebarbeiro Posted June 1, 2015 Posted June 1, 2015 Apply in the left category menu column, the organe one on the left. When mouse over expands Share this post Link to post Share on other sites More sharing options...
guilhermebarbeiro Posted June 8, 2015 Posted June 8, 2015 I do the steps, paste the code: $('span.grower').mouseover(function(){ toggleBranch($(this)); }); in /public_html/site/themes/default2/js/tools//treeManagement.js but nothing happens. I need to change another file too? Share this post Link to post Share on other sites More sharing options...
guilhermebarbeiro Posted June 19, 2015 Posted June 19, 2015 Someone? Share this post Link to post Share on other sites More sharing options...
Demchaldo Posted August 4, 2015 Posted August 4, 2015 (edited) PrestaShop 1.6 I solved this problem in such a way to treeManagament.js add this code $('ul.tree.dhtml span.grower').mouseover(function(){ toggleBranch($(this)); }); under $('ul.tree.dhtml span.grower').click(function(){ toggleBranch($(this)); }); now, tree colappse on hover to better effect i modified grower class to #categories_block_left li span.grower { display: block; position: absolute; right: 4px; top: 10px; cursor: pointer; font-family: "FontAwesome"; font-size: 18px; width: 100%; } #categories_block_left li span.grower.OPEN:before, #categories_block_left li span.grower.CLOSE:before { content: "\f106"; display: block; vertical-align: middle; float: right; width: 30px; height: 30px; color: #303030; line-height: 30px; text-align: center; } method is work, but now category name isn't clicable Edited August 4, 2015 by Demchaldo (see edit history) Share this post Link to post Share on other sites More sharing options...
ionutgeorgescu Posted February 17, 2016 Posted February 17, 2016 Dear Vekia, I have a store and i want for a certain article ( manufacturers) when i hover to do nothing, to open only on click. Can you please help? Share this post Link to post Share on other sites More sharing options...
Recommended Posts