Jump to content

Always collapsed cart in ajax mode of cart : help...


Recommended Posts

Hi everybody,

I'm looking for a solution for my cart.
Indeed I would like to use ajax cart but in collapsed mode. I don't care about detail of products.
I would like to have a summary in my cart :
number of items : price
delivery : price
total price : price
order button

I don't find a solution. I tried in ajax.js file to replace expand function by collapse function but it doesn't work. In fact I've succeeded in displaying only number of items : price. But the other informations are not displayed...
I'm sure someone dealt with similar issue.
I'm working on prestashop 1.4.0.17 (used for production).
Thanks for your help...

Link to comment
Share on other sites

I was having problems with this as well. So I looked at: http://www.prestashop.com/forums/viewthread/53584/general_discussion/cart_module_always_expanded

Now, this doesn't seem to work in PS 1.4, so this is what I did:

#1 - take whitelighter's suggestion (post 5)

#2 - in ajax-cart.js, changed line 564 to:

//ajaxCart.expand();
           ajaxCart.collapse();



I'm not sure if step 1 is necessary, still working that out - but thought I would help with what I have so far. It seems to be working.

Link to comment
Share on other sites

  • 1 year later...

 

 

#2 - in ajax-cart.js, changed line 564 to:

//ajaxCart.expand();
		ajaxCart.collapse();

 

I'm not sure if step 1 is necessary, still working that out - but thought I would help with what I have so far. It seems to be working.

 

"The ajaxCart.expand();" does not seem to exist in the Prestashop 1.4.8.2 version, but the problem remains. Any idée’s from the js. tpl experts?

Link to comment
Share on other sites

  • 9 months later...

simply replacing ajaxCart.refresh(); for ajaxCart.collapse(); in ajax-cart.js (under //when document is loaded...) will keep the cart collpased by default . then you can just disable the expanding capability editing your product.tpl

Link to comment
Share on other sites

  • 3 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...