Jump to content

Recommended Posts

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

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 by turdi (see edit history)
Link to comment
Share on other sites

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

  • 6 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...