Dimar Posted September 16, 2013 Share Posted September 16, 2013 Hello everyone Has anyone found a way to put the cart in the right column? Apparently in version 1.5.5 have changed some things in the template and no longer works in the traditional way. Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 if you want cart in the right column - you have to remove it from displayTop section (modules > positions) it's because you can't have two carts with AJAX cart option turned on Link to comment Share on other sites More sharing options...
Dimar Posted September 16, 2013 Author Share Posted September 16, 2013 Thanks VekiExactly 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 More sharing options...
Dimar Posted September 25, 2013 Author Share Posted September 25, 2013 I have not found how to do this. Someone found how to do it in Prestasho 1.5.5?? Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 what you've got now exactly? any possibility to check your website? then it will be much easier to say something more Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 thank you for private message with url. ok, i know what's going on there i solved this issue today here: http://www.prestashop.com/forums/topic/276687-solved-basket-keeps-disappearing/ enjoy! and don't forget to let me know if it will not / will work Link to comment Share on other sites More sharing options...
Dimar Posted September 25, 2013 Author Share Posted September 25, 2013 (edited) 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 September 25, 2013 by Dimar (see edit history) Link to comment Share on other sites More sharing options...
Dimar Posted September 26, 2013 Author Share Posted September 26, 2013 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 More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 glad to hear that i could help you a bit in this case im going to mark this topic as [solved] best regards Link to comment Share on other sites More sharing options...
maio Posted October 8, 2013 Share Posted October 8, 2013 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 More sharing options...
maio Posted October 8, 2013 Share Posted October 8, 2013 (edited) for the previous subject, I opened a new post; http://www.prestashop.com/forums/topic/280313-ajax-cartjs-customization Edited October 8, 2013 by maio (see edit history) Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 8, 2013 Share Posted October 8, 2013 glad to hear that i could help you a bit in this case im going to mark this topic as [solved] best regards Thanks @Vekia, This commit should force the block cart only from the hook "Top" to slide up and down. https://github.com/PrestaShop/PrestaShop/commit/008c6ce75925cb8f66034252faa64710dcc3bbd0 Best regards 1 Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 Thanks @Vekia, This commit should force the block cart only from the hook "Top" to slide up and down. https://github.com/PrestaShop/PrestaShop/commit/008c6ce75925cb8f66034252faa64710dcc3bbd0 Best regards hello Gregory is this fix included to the latest release? (1.5.6) ? Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 8, 2013 Share Posted October 8, 2013 nop sorry it came out yesterday, will be in next release. Regards Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 okay, many thanks for information. So now when someone will have this issue i will post url to github. i think that it's time to close this topic. url to solution: https://github.com/PrestaShop/PrestaShop/commit/008c6ce75925cb8f66034252faa64710dcc3bbd0 Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 10, 2013 Share Posted October 10, 2013 Hey, This commit was the base of the regression. https://github.com/PrestaShop/PrestaShop/commit/1652f3575c10995b8e088c5cf185b9f8ee77d32a Sorry about this ! Best regards Link to comment Share on other sites More sharing options...
Recommended Posts