turdi Posted April 6, 2013 Share Posted April 6, 2013 I've noticed that my categories are not displayed. I'm trying to configure the mising images, but during the process the categories disapeared, can any one suggest a solution? What could happen? I only touched the products and the cart. Please help. Web: www.growmundocannabico.com Link to comment Share on other sites More sharing options...
turdi Posted April 6, 2013 Author Share Posted April 6, 2013 Anyone? Then I enable Dynamic categories, this hapens. I've noticed, that the CSS display:none is aplied to the element. Why? Link to comment Share on other sites More sharing options...
PascalVG Posted April 6, 2013 Share Posted April 6, 2013 Did you reset the module Block Categories already?? Or uninstall-reinstall? Just a try... Link to comment Share on other sites More sharing options...
turdi Posted April 6, 2013 Author Share Posted April 6, 2013 Reset - Yes Reinstall - Yes Solution - not I'm lost... please help. Link to comment Share on other sites More sharing options...
turdi Posted April 6, 2013 Author Share Posted April 6, 2013 (edited) ok, I found a post: http://www.prestashop.com/forums/topic/177948-dynamic-categories-problem/ They speak about the JS error, Chrome shows me an error in ajax-cart.js The post say's that JS error can cause this problem. Here's the code /* roll over cart */ var cart_block = new HoverWatcher('#cart_block'); Uncaught ReferenceError: HoverWatcher is not defined var shopping_cart = new HoverWatcher('#shopping_cart'); $("#shopping_cart a:first").hover( function() { $(this).css('border-radius', '3px 3px 0px 0px'); if (ajaxCart.nb_total_products > 0) $("#cart_block").stop(true, true).slideDown(450); }, function() { $('#shopping_cart a').css('border-radius', '3px'); setTimeout(function() { if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) $("#cart_block").stop(true, true).slideUp(450); }, 200); } ); $("#cart_block").hover( function() { $('#shopping_cart a').css('border-radius', '3px 3px 0px 0px'); }, function() { $('#shopping_cart a').css('border-radius', '3px'); setTimeout(function() { if (!shopping_cart.isHoveringOver()) $("#header #cart_block").stop(true, true).slideUp(450); }, 200); } ); Error mesage: Uncaught ReferenceError: hoverWatcher is not defined I'm not familiar with JS, can anyone suggest a solution? Edited April 6, 2013 by turdi (see edit history) Link to comment Share on other sites More sharing options...
turdi Posted April 8, 2013 Author Share Posted April 8, 2013 any help, please Link to comment Share on other sites More sharing options...
turdi Posted April 8, 2013 Author Share Posted April 8, 2013 Solved with help of stackoverflow: http://stackoverflow.com/questions/15853064/category-block-has-displaynone-prestashop/15873112?noredirect=1#comment22598253_15873112 Link to comment Share on other sites More sharing options...
NemoPS Posted April 8, 2013 Share Posted April 8, 2013 If you're not familiar with js, don't mess with it, you you may cause other issues (really) Maybe ask someone, but basically you need to add that hoverWatcher function, which is likely not being supported dy your theme. Or maybe you updated the modules, but not the default theme, and that function is missing. here is the function (prestashop 1.5.3.1) found in ajax-cart.js, blockcart module folder function HoverWatcher(selector){ this.hovering = false; var self = this; this.isHoveringOver = function() { return self.hovering; } $(selector).hover(function() { self.hovering = true; }, function() { self.hovering = false; }) } Link to comment Share on other sites More sharing options...
turdi Posted April 8, 2013 Author Share Posted April 8, 2013 Hi, well, I'm learning this way Sorry for troubles caused I solved it. Link to comment Share on other sites More sharing options...
NemoPS Posted April 8, 2013 Share Posted April 8, 2013 (edited) Don't worry I meant don't do it on a live shop, maybe do some tests before But it's okay to learn this way (or, you can also go here, great javascript tuts: http://net.tutsplus....avascript-ajax/) Edited April 8, 2013 by Nemo1 (see edit history) 1 Link to comment Share on other sites More sharing options...
fetis Posted October 12, 2013 Share Posted October 12, 2013 I have the same problem, but doesn't have any JS errors. Any idea why this block generate list of categories with display: none Link to comment Share on other sites More sharing options...
fetis Posted October 12, 2013 Share Posted October 12, 2013 When I've disabled Dynamic mode it displayed my categories, but I still don't understand why this doesn't work with dynamic. What JS script controls category appearance? Link to comment Share on other sites More sharing options...
fetis Posted October 12, 2013 Share Posted October 12, 2013 lol I've found a problem. Recently, I deleted Block categories from Page header hook, this cause that tree script doesn't load on the page and tree became broken. Hopes, this will help someone. Link to comment Share on other sites More sharing options...
PascalVG Posted October 13, 2013 Share Posted October 13, 2013 Yep, should be in header, as there it loads css and js scripts etc. It doesn't mean it SHOWS in the header, only loads some necessary files. pascal 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