tozi Posted April 21, 2014 Share Posted April 21, 2014 (edited) Hi all, in my page http://simplydesign.sk/reveal/index.php doesnt work correct javascript. Anybody know where is the problem? Eg. when click in add basket (do košíku). Then nothing happend. But when i refresh page then is product in cart. Also deleting some of the product from the basket is weird. It should also click 3 times. I have prestashop 1.5.6.2 Help. Edited April 21, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 21, 2014 Share Posted April 21, 2014 your ajax-cart script cant find image to "animate" add to cart process. Link to comment Share on other sites More sharing options...
tozi Posted April 21, 2014 Author Share Posted April 21, 2014 Thanks Milos. Yet works add cart. But delete problem still is there. Link to comment Share on other sites More sharing options...
tozi Posted April 21, 2014 Author Share Posted April 21, 2014 (edited) ajax-cart.js i have in mytheme/js/modules/blockcart // add the picture to the cart var $element = $(callerElement).parent().parent().parent().parent().find('a.product_image img,a.product_img_link img'); if (!$element.length) $element = $('#bigpic'); var $picture = $element.clone(); var pictureOffsetOriginal = $element.offset(); i tried also one parent (), two parent (etc). Edited April 21, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 21, 2014 Share Posted April 21, 2014 have you tried to remove one parent() ? Link to comment Share on other sites More sharing options...
tozi Posted April 21, 2014 Author Share Posted April 21, 2014 Yes. Remove/add. Nothing happend. I have new install here http://presta.simplydesign.sk/index.php. And all works great. Link to comment Share on other sites More sharing options...
juaroal Posted April 22, 2014 Share Posted April 22, 2014 I had a similar problem few days ago with prestashop 1.6 and I uploaded again all the JavaScript files of the theme to the server and the problem is solved. 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