prestalearn Posted May 12, 2012 Share Posted May 12, 2012 Im soon finished with my shop to go live but Im experiencing a problem wich I think is easy to solve if I just knew how.... When pressing the add to cart button the products is flying to the top left (where I have my logo) instead of to the top left where I have my cart... Does someone know where I configure where the products should "fly"? Thanks in advance and have a great weekend! Link to comment Share on other sites More sharing options...
tomerg3 Posted May 12, 2012 Share Posted May 12, 2012 it's in /modules/blockcart/ajax-cart.js var cartBlockOffset = $('#cart_block').offset(); #cart_block is the destination of the animation. Link to comment Share on other sites More sharing options...
prestalearn Posted May 12, 2012 Author Share Posted May 12, 2012 it's in /modules/blockcart/ajax-cart.js var cartBlockOffset = $('#cart_block').offset(); #cart_block is the destination of the animation. Thanks alot for the tip. I have this code in the ajax-cart.js: var cartBlockOffset = $('#cart_block').offset(); At my cart div I have this code: <div id="cart_block" class="cart_block"> So I just dont understand why it doesnt fly there? Does something seem wrong? Link to comment Share on other sites More sharing options...
tomerg3 Posted May 12, 2012 Share Posted May 12, 2012 maybe it's there twice? Can you post a link to the page? Link to comment Share on other sites More sharing options...
prestalearn Posted May 12, 2012 Author Share Posted May 12, 2012 Yeah sure: http://www.skolyx.se/ (its not quite done yet) Really appriciate the help! Link to comment Share on other sites More sharing options...
tomerg3 Posted May 13, 2012 Share Posted May 13, 2012 Try to change it to cart_block_summary as cart_block does not have a width defined, as it defaulting to the whole width (890px), and goes to the left side of it. Link to comment Share on other sites More sharing options...
prestalearn Posted May 13, 2012 Author Share Posted May 13, 2012 Try to change it to cart_block_summary as cart_block does not have a width defined, as it defaulting to the whole width (890px), and goes to the left side of it. You mean changing var cartBlockOffset = $('#cart_block').offset(); to var cartBlockOffset = $('#cart_block_summary').offset(); in the ajax file right? Didnt work, but thanks for the advice. Any other suggestions is really appriciated Link to comment Share on other sites More sharing options...
tomerg3 Posted May 13, 2012 Share Posted May 13, 2012 looks like the old value is still there,,,, http://screencast.com/t/Fy043Xc9S8CI Link to comment Share on other sites More sharing options...
prestalearn Posted May 13, 2012 Author Share Posted May 13, 2012 (edited) looks like the old value is still there,,,, http://screencast.com/t/Fy043Xc9S8CI Its so strange... it says cart_block_summary here on http://www.skolyx.se...rt/ajax-cart.js Does it still say cart_block only even after refresh? Edit: Ive hired a prestashop fixer on fiverr.com lets see if he can fix it Edited May 13, 2012 by prestalearn (see edit history) Link to comment Share on other sites More sharing options...
prestalearn Posted May 15, 2012 Author Share Posted May 15, 2012 THanks for all the help tomerg3 but I got help on fiverr.com and he fixed it for me. He would let me know what he changed though Link to comment Share on other sites More sharing options...
Rekha Posted May 17, 2013 Share Posted May 17, 2013 Say Prestalearn, Can you tell us how to repair so the image flies to the right? maybe you can post the changed files to compare with original code to detect how your fiverr fixed? Link to comment Share on other sites More sharing options...
Recommended Posts