Jump to content

[ Solved ] Block Cart Disappear


Recommended Posts

Hi,

 

I've update PS from 1.5.4.1 to 1.5.5.0 and everything work fine except blockcart, it disappears (the new rules for ajax-cart do not comply as suggest in the http://forge.prestashop.com/browse/PSCFV-4096 ).
 
I need the block cart always viewable, there is a same sort code patch to solve the problem ? Or maybe can i use the old blockcart from PS 1.5.4.1 ?

 

Thanks,

Amar,

Edited by amar.prestashop (see edit history)
Link to comment
Share on other sites

Thank you Vekia,

 

I've commented the code in module/blockcart/ajax-cart.js :

$("#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())
                    $("#cart_block").stop(true, true).slideUp(450);
            }, 200);
        }
    );

 

and 

 

if($('#cart_block dl.products dt').length == 0)

                                {
                                    $("#cart_block").stop(true, true).slideUp(200);
                                    $('#cart_block_no_products:hidden').slideDown(450);
                                    $('#cart_block dl.products').remove();
                                }

 

Now it works well.

 

Thank you

Amar,

Link to comment
Share on other sites

×
×
  • Create New...