Kolczatka Posted November 11, 2014 Share Posted November 11, 2014 (edited) Hi! I have a problem with cart: it does not expand :/ http://beta.hamer.sklep.pl/ This theme you see under link above is modified default-bootstrap theme, presta 1.6. Everything I've done there is change css files, so it's strange that I've broken cart expand. I don't know when and how I did this. Could somebody be so helpful and could try to find what is wrong with this cart? I would also greatly appreciate some explanation, couse I'm very not familiar with javascript/ajax. Edited November 11, 2014 by Kolczatka (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted November 11, 2014 Share Posted November 11, 2014 Hi, by expand effect - do you mean the cart expanding, after you hover over it? Because I see it in chrome normally..maybe try using a different browser, or go into anonymous regime on your current browser. Link to comment Share on other sites More sharing options...
Kolczatka Posted November 11, 2014 Author Share Posted November 11, 2014 I am sorry, I wasn't very precise- It works when a product is already in the cart, but when cart is empty, it does not expand :/ After I add and then delete product from cart- then it works, but not when you are entering the page first time.Sorry for any language mistakes Link to comment Share on other sites More sharing options...
PSfever.com Posted November 11, 2014 Share Posted November 11, 2014 Try and look for some cart_qty conditions inside of ajax-cart.js. Maybe it works only, when there are products inside of teh cart. Link to comment Share on other sites More sharing options...
Kolczatka Posted November 11, 2014 Author Share Posted November 11, 2014 It is a good idea with this cart_qty. I have tried to find function responsible for expanding, but I failed. Would You be so kind and try to find this part of code that makes decision about expanding?My knowledge about javascript is near zero:/ Link to comment Share on other sites More sharing options...
Kolczatka Posted November 11, 2014 Author Share Posted November 11, 2014 Okay, I think I figured it out!this: $("#header .shopping_cart a:first").hover( function(){ if (ajaxCart.nb_total_products > 0 || cart_qty > 0) $("#header .cart_block").stop(true, true).slideDown(450); }, function(){ setTimeout(function(){ if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) $("#header .cart_block").stop(true, true).slideUp(450); }, 200); } ); had to become this: $("#header .shopping_cart a:first").hover( function(){ /*if (ajaxCart.nb_total_products > 0 || cart_qty > 0)*/ $("#header .cart_block").stop(true, true).slideDown(450); }, function(){ setTimeout(function(){ if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) $("#header .cart_block").stop(true, true).slideUp(450); }, 200); } ); 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