SergioE Posted August 28, 2015 Share Posted August 28, 2015 Hello, as the subject says, I need to know how to remove the display effect of the cart when you mouse over it. I want to put the cart block on the left side and if possible, keep the drop-down only when this on the side, but not in the displayTop, where this default. Thank you Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2015 Share Posted August 30, 2015 this can be helpful: if you want to use it also in the top section (in addition to cart in column) - and remove the "dropdown" effect you to have open file: /themes/this-is-your-template/js/modules/blockcart/ajax-cart.js remove code: $("#header .shopping_cart a:first").hover( function(){ if (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 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); } ); $("#header .cart_block").hover( function(){ }, function(){ setTimeout(function(){ if (!shopping_cart.isHoveringOver()) $("#header .cart_block").stop(true, true).slideUp(450); }, 200); } ); Link to comment Share on other sites More sharing options...
SergioE Posted August 30, 2015 Author Share Posted August 30, 2015 Thank you for responding Vekia. I want to put the cart block in the left column, but the display effect in the left column there is active, and change the drop-displayTop has no effect. That code blocks me the pull effect in both places or only in the displayTop? Thanks Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2015 Share Posted August 31, 2015 it will block "pull down" effect for each block. In addition, it can generate some troubles if you will use block cart in two places. it can confuse js scripts. Link to comment Share on other sites More sharing options...
Recommended Posts