moneeeka Posted April 27, 2014 Share Posted April 27, 2014 Hi, is there a way to revert to the add to cart animation (sliding of product to the shopping cart) found in the earlier versions to Prestashop 1.6? Thanks! 1 Link to comment Share on other sites More sharing options...
vekia Posted April 28, 2014 Share Posted April 28, 2014 and what about cart popup? you want to disable it? Link to comment Share on other sites More sharing options...
moneeeka Posted April 29, 2014 Author Share Posted April 29, 2014 Yes, would like to disable the cart popup. Link to comment Share on other sites More sharing options...
moneeeka Posted April 30, 2014 Author Share Posted April 30, 2014 Hi, hope someone can help me get a solution for this one. Thanks! Link to comment Share on other sites More sharing options...
Amaury81 Posted May 15, 2014 Share Posted May 15, 2014 Hi more or less the same issue here : where can we manage the cart popup in the back office ? thxs for ur help Link to comment Share on other sites More sharing options...
Petter B Posted May 15, 2014 Share Posted May 15, 2014 Also interested. I have already disabled the cart popup, but would like some visual confirmation that the product has been added to cart. Like the old cart animation (sliding of product to the shopping cart). 3 Link to comment Share on other sites More sharing options...
Amaury81 Posted May 15, 2014 Share Posted May 15, 2014 but how did you disable the car pop up petter ? Link to comment Share on other sites More sharing options...
nortonlgn Posted May 17, 2014 Share Posted May 17, 2014 The add to cart animation was a great feature, as it provided a visual of the product being added to the cart, and it also showed the user where the cart button was, when they added their first product. We just went from an in house shopping cart system, and we choose Prestashop. We decided to go with 1.6 because, I figured we start with the latest and greatest. I can see on small screens, the animation may get lost, so it would be nice to offer the inline frame on devices with a smaller real estate. I didn't expect the developers to kill and existing feature in 1.6 I image somebody will develop an add-on, that will bring back the animation, however I suspect that the add-on will need to change the core files. The better solution, is to get the developers, to add this feature back, as an option, and maybe allow the option to be enabled by device type (smartphone, tablet, desktop). How does one canvass the developers to but a feature back into prestashop? 3 Link to comment Share on other sites More sharing options...
Petter B Posted May 18, 2014 Share Posted May 18, 2014 but how did you disable the car pop up petter ? Sorry, I don´t know. I had someone make a customization, but I will let you know if I find out. Link to comment Share on other sites More sharing options...
Popular Post Kapil Gautam Posted June 10, 2014 Popular Post Share Posted June 10, 2014 Edit => Ajax-cart.js => Animation effect on 1.6 version Location : theme / default-bootstrap / js / modules / blockcart / Ajax-cart.js (copy this txt file) ajax-car.txt 23 Link to comment Share on other sites More sharing options...
Petter B Posted June 11, 2014 Share Posted June 11, 2014 Edit => Ajax-cart.js => Animation effect on 1.6 version Location : theme / default-bootstrap / js / modules / blockcart / Ajax-cart.js (copy this txt file) wow, is the cart animation added? Thanks! Is it safe to use? Link to comment Share on other sites More sharing options...
Kapil Gautam Posted June 11, 2014 Share Posted June 11, 2014 wow, is the cart animation added? Thanks! Is it safe to use? yes......................it's safe.................even it work on zqzoom to............... !! Link to comment Share on other sites More sharing options...
Drage-Birger Posted June 27, 2014 Share Posted June 27, 2014 yes......................it's safe.................even it work on zqzoom to............... !! Hey, I did exactly as you have written, but it did not work for me? - Also i checked to make sure that the AJAX-cart module was activated and de-activated.. Both times it did not work? Drage Link to comment Share on other sites More sharing options...
Kapil Gautam Posted July 5, 2014 Share Posted July 5, 2014 can u share your website with me and its working with AJAX-cart module is activated Link to comment Share on other sites More sharing options...
rtvt Posted July 8, 2014 Share Posted July 8, 2014 Edit => Ajax-cart.js => Animation effect on 1.6 version Location : theme / default-bootstrap / js / modules / blockcart / Ajax-cart.js (copy this txt file) Great solution! But it`works only on product page. In category or home - it doesn`t show the animation. Tested on default-bootstrap theme. Prestashop 1.6.0.8 I think there some problem with getting image to animate. var pr_id='.pr_'+idProduct; if(addedFromProductPage){ if (!$element.length) $element = $('#bigpic,.zoomPad img:first'); } else{$element = $(pr_id);} Something wrong with element detect when not addedFromProductPage Link to comment Share on other sites More sharing options...
Kapil Gautam Posted July 8, 2014 Share Posted July 8, 2014 Can you share me your website url .so that I will provide u better soln. Link to comment Share on other sites More sharing options...
Kapil Gautam Posted July 8, 2014 Share Posted July 8, 2014 For me its worked on category and home page to....... share ur website. Link to comment Share on other sites More sharing options...
rtvt Posted July 8, 2014 Share Posted July 8, 2014 For me its worked on category and home page to....... share ur website. http://aixam.ru/ Link to comment Share on other sites More sharing options...
Kapil Gautam Posted July 8, 2014 Share Posted July 8, 2014 Will provde u sol. Tomm. Link to comment Share on other sites More sharing options...
rtvt Posted July 8, 2014 Share Posted July 8, 2014 I'll be waiting for solution) Link to comment Share on other sites More sharing options...
Kapil Gautam Posted July 9, 2014 Share Posted July 9, 2014 share me ur mail id if possible !! there will send you an example 1 Link to comment Share on other sites More sharing options...
Funny-Cat WebShop Posted July 10, 2014 Share Posted July 10, 2014 and what about cart popup? you want to disable it? Dear vekia sorry to bother you but need to ask, is there an official solution for the "add to cart animation" and the "disable the cart popup"? Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2014 Share Posted July 10, 2014 Dear vekia sorry to bother you but need to ask, is there an official solution for the "add to cart animation" and the "disable the cart popup"? unfortunately, at the moment official guide doesnt exist... Link to comment Share on other sites More sharing options...
Funny-Cat WebShop Posted July 10, 2014 Share Posted July 10, 2014 (edited) Edit => Ajax-cart.js => Animation effect on 1.6 version Location : theme / default-bootstrap / js / modules / blockcart / Ajax-cart.js (copy this txt file) Dear Kapil Gautam I am using your modified ajax-cart.js at the moment and I noticed a small bug. When a customer tries to add to the cart a product in an amount that is more then what it is available it still does the animation and it shouldn't as its misleading. Example: you have only 10 units of the product "Potato" and the customer tries to add 11, (sets the Quantity to 11 and then Clicks on "add to cart"). The product is not added to the cart, which is correct since its not available on that Quantity, but it still does the animation (and in my view it should't do it since its misleading). Other then that, really nice work. Thank you for that very helpful removal of the nagging "popup". Edited July 10, 2014 by funny-cat_webshop (see edit history) Link to comment Share on other sites More sharing options...
Popular Post wildrow Posted July 25, 2014 Popular Post Share Posted July 25, 2014 (edited) So, I got Kapil Gautam's solution to work with our theme derived from default-bootstrap 1.6 The problem was indeed, as RoyVelvet pointed out, that the images in category lists do not have a class of the form .pr_... so I replaced else{$element = $(pr_id);} by else $element = $(callerElement).parent().parent().parent().parent().find('.product-image-container img'); --- Or, to start with Kapil Gautam's attached file ajax-car.txt in post #10: Just replace lines 320-325 var $element = $(callerElement).parent().parent().find('a.product_image img,a.product_img_link img'); var pr_id='.pr_'+idProduct; if(addedFromProductPage){ if (!$element.length) $element = $('#bigpic,.zoomPad img:first'); } else{$element =$(pr_id);} with var $element; if(addedFromProductPage) $element = $('#bigpic,.zoomPad img:first'); else $element = $(callerElement).parent().parent().parent().parent().find('.product-image-container img'); I left out the .pr_ reference that I didn't find in the template - hopefully this isn't messing up other things, though. The point here is to find an image relative to the clicked add-button (callerElement) because there are lots of images for other products on product list pages. Also, I disabled line 335/336, because I didn't like the scrolling to the top every time I added a product to the card. (Our lists are more compact than the default-bootstrap category lists anyway) if(!addedFromProductPage){ // $('html, body').animate({scrollTop : 0},500); ajax-cart.js.txt Edited July 25, 2014 by wildrow (see edit history) 15 Link to comment Share on other sites More sharing options...
NBBO Posted August 9, 2014 Share Posted August 9, 2014 I tried this fix on a fresh install of 1.6.0.8, but it did not work. Actually it destroyed more than it fixed, since my add to cart buttons now only works on product pages and without animation or popup. A click on the add to cart button on the front or category-page means nothing happening, at least with ajax-cart turned on. My console is giving me these errors, but i am not sure what's wrong: Uncaught ReferenceError: baseUri is not defined ajax-cart.js:307 ajaxCart.addajax-cart.js:307 (anonymous function)ajax-cart.js:133 n.event.dispatchjquery-1.11.0.min.js:3 r.handle Link to comment Share on other sites More sharing options...
wildrow Posted August 9, 2014 Share Posted August 9, 2014 (edited) Not sure about your error messages, but one needs to set $element to whatever the picture element is that needs to be animated on the page. That is different for different types of pages. I don't have products on the front page, so probably, you have specific blocks for promotions etc. that come with their own image elements. One would have to take into account of all their template .tpl files (or use like F12 in a browser) and see how the image elements are named or situated. I will eventually have to fix all that in our own template, but I won't get there before some time, and I don't use the blocks that you have on your front page.... In the meantime, you could also try to convince Prestashop to bring the animation to the cart back, the pop-up is nagging, indeed. Edited August 9, 2014 by wildrow (see edit history) Link to comment Share on other sites More sharing options...
sandeep_adibackoffic Posted August 16, 2014 Share Posted August 16, 2014 thank it works !!!! Link to comment Share on other sites More sharing options...
DArnaez Posted September 12, 2014 Share Posted September 12, 2014 Can any of you help me to activate this animation? I installed Prestashop 1.6 but when user click "Add to cart" it jump a windows with "Continue shopping or Go to checkout" . I never see this animation option in the backoffice, Thanks! Link to comment Share on other sites More sharing options...
DArnaez Posted September 14, 2014 Share Posted September 14, 2014 I still no having any animation on Add to cart. How to activate it? I'm using the theme default Prestashop 1.6. Check my site to see by yourself www.ohmyicons.com thanks. Link to comment Share on other sites More sharing options...
kamaaina Posted October 2, 2014 Share Posted October 2, 2014 Kapil I take it I replace the ajax-cart.js by saving your text file as ajaz-cart.js - have you found the solution to animation appearing on other pages? Thanks for your help - Ted Link to comment Share on other sites More sharing options...
Kapil Gautam Posted October 2, 2014 Share Posted October 2, 2014 Kapil I take it I replace the ajax-cart.js by saving your text file as ajaz-cart.js - have you found the solution to animation appearing on other pages? Thanks for your help - Ted yes that is working on other pages to...............!! Link to comment Share on other sites More sharing options...
Kapil Gautam Posted October 2, 2014 Share Posted October 2, 2014 yes that is working on other pages to...............!! Guys you can take reference from this url here I have implemented : http://opensum.net/greenbazar/12-wellness. 1 Link to comment Share on other sites More sharing options...
kamaaina Posted October 2, 2014 Share Posted October 2, 2014 Kapil - saved file as .js added it to directory but when I check front-end the Add cart pop-up window still displays - how do I get rid of the pop-up? Link to comment Share on other sites More sharing options...
wildrow Posted October 2, 2014 Share Posted October 2, 2014 Just to be sure: After modifying a js-file, it may be necessary to tell the browser to reload it: CTRL-F5 or close and reopen browser... Link to comment Share on other sites More sharing options...
kamaaina Posted October 2, 2014 Share Posted October 2, 2014 Thanks! I tried that, also cleared browser history, etc - still have pop up - see http://kamaainahawaii.com/ Link to comment Share on other sites More sharing options...
Kapil Gautam Posted October 2, 2014 Share Posted October 2, 2014 Thanks! I tried that, also cleared browser history, etc - still have pop up - see http://kamaainahawaii.com/ I have seen ur website u have not replace the js : kindly replace the js Link to comment Share on other sites More sharing options...
wildrow Posted October 2, 2014 Share Posted October 2, 2014 @kamaaina, your ajax-cart.js is loaded from [EDITED] check in your browser if it contains your changes. If not, it is either some sort of cache problem or the changes never went to the server (check in FTP, e.g. FTP user has no write access to files owned by apache webserver...) Link to comment Share on other sites More sharing options...
samyha Posted October 2, 2014 Share Posted October 2, 2014 Hello wildrow, I took the liberty to edit your post, as the private code of kamaaina has been shared. Thank you for helping 1 Link to comment Share on other sites More sharing options...
Stefand Posted November 15, 2014 Share Posted November 15, 2014 (edited) It works great. But I have 1 question / suggestion: After the product "fly" to the cart, is it possible to let the blockcart stay expanded (like the big e-commerce stores like Zalando). So when I hover on the blockcart in the header, it expands. But is it possible to let it expand, after the product flies to the cart? Edited December 14, 2014 by Stefand (see edit history) Link to comment Share on other sites More sharing options...
rudy5 Posted November 15, 2014 Share Posted November 15, 2014 (edited) many thanks. it happens a curious thing..it works on localhost when i first tried it but if i upload the file via ftp to the server version it doesn't work.. just the regular add to cart without animation (i already disabled the pop up window) edit: i needed to activate ajax cart. thanks again;) Edited November 15, 2014 by rudy5 (see edit history) 1 Link to comment Share on other sites More sharing options...
Lionheartmatrix Posted November 18, 2014 Share Posted November 18, 2014 (edited) Hi guys. I managed to get it to work with default theme. Now I work with Optima Multipurpose Responsive theme and it doesn't work anymore. It uses ajax cart, but it is modified. Can somebody post exactly, what are the changes in Kapil's ajax-cart.js compared to the original one? Maybe I can modify optimas ajax-cart.js then. Any advice most welcomed. Thanks and best regards Edited November 18, 2014 by Lionheartmatrix (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts