tamarrah Posted March 22, 2011 Share Posted March 22, 2011 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 : pricedelivery : pricetotal price : priceorder buttonI 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 More sharing options...
jfriday Posted March 28, 2011 Share Posted March 28, 2011 I was having problems with this as well. So I looked at: http://www.prestashop.com/forums/viewthread/53584/general_discussion/cart_module_always_expandedNow, 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 More sharing options...
tamarrah Posted March 29, 2011 Author Share Posted March 29, 2011 Thanks a lot for your help.I'll try it. Link to comment Share on other sites More sharing options...
guest* Posted March 31, 2011 Share Posted March 31, 2011 #2 - in ajax-cart.js, changed line 564 to: //ajaxCart.expand(); ajaxCart.collapse(); For me is line 539 and it works. Thxs for the hack. Link to comment Share on other sites More sharing options...
MacMaster Posted August 17, 2012 Share Posted August 17, 2012 #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 More sharing options...
oscarhh Posted June 7, 2013 Share Posted June 7, 2013 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 More sharing options...
sooroos Posted September 7, 2013 Share Posted September 7, 2013 hi, does anyone know how can i keep the "cashout button" displayed in a collapsed cart? right now it displays only nr of products and total p.s. 1.5.4.1 default theme Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now