Можно еще вот так:Открываем файл:
Находим код:
$('#cart > .heading a').bind('click', function() {
$('#cart').addClass('active');
$.ajax({
url: 'index.php?route=checkout/cart/update',
dataType: 'json',
success: function(json) {
if (json['output']) {
$('#cart .content').html(json['output']);
}
}
});
$('#cart').bind('mouseleave', function() {
$(this).removeClass('active');
});
});
И меняем его на этот:
$("#cart").hover(
function () {
$('#cart .content').stop(true, true).show('slow');
$.ajax({
url: 'index.php?route=checkout/cart/update',
dataType: 'json',
success: function(json) {
if (json['output']) {
$('#cart .content').html(json['output']);
}
}
});
},
function () {
$('#cart .content').stop(true, true).hide('slow');
}
);
Все, теперь при наведении курсора корзина будет плавно открываться.
Если вы не хотите плавного открытия и закрытия корзины, то удалите слово slow в начале и конце данного кода.