Jump to content

[SOLVED] The cart module in the right column in Prestashop 1.5.5


Recommended Posts

Thanks Veki

Exactly this way leave it, after seeing his response in another topic. In other versions of the series 1.5 on having done this, the cart was remaining static in the right column without expanding (and it is for what I look). I could not have passed to 1.5.5 because of this.

Link to comment
Share on other sites

  • 2 weeks later...

Thank you very much Vekia.

However, when the cart is empty do not see the cart and if you add an item, it does not appear in the cart. We have to move the mouse blockuserinfo module for display.

Edit:

 

Taking your idea of rename, rename also the line:
 

HoverWatcher cart_block var = new ('# cart_block');
HoverWatcher shopping_cart var = new ('# shopping_cart');

And now if you first enter, get the cart and never shrinks and adds an item it is added without problems, but when you delete the article and leave your cart empty this is hidden and does not appear more.

 

Edited by Dimar (see edit history)
Link to comment
Share on other sites

YYYEEEESSS! I managed to make it work well! With the help of Vekia, and myself to do different tests.

Detail what I did:

Rename one file: ajax-cart.js in the following lines:
 

$("#cart_block").stop(true, true).slideUp(200);

to

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

to

/** $("#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 finally:

var cart_block = new HoverWatcher('#cart_block');
    var shopping_cart = new HoverWatcher('#shopping_cart');

to

/**var cart_block = new HoverWatcher('#cart_block');
    var shopping_cart = new HoverWatcher('#shopping_cart');**/

I'm no programmer, but with some common sense and a little help you solve the problems.

 

I'll post in the Spanish forum the solution, and he had opened a post asking for help to solve this.

 

 

Thanks to vekia

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi everybody,

 

I'd like to move the ajax collapse/expand funtion just on the cart_block_list,

leaving the summary always visible , without displaying the shopping cart...

 

Since I don't know any js , I can't figure how the functions that control the block_cart expansion

in ajax-cart is done...

 

can somebody explain how  'expand : function()'   and 'collapse : function()'

in ajax-cart.js work?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...