delete-account-pleas Posted January 28, 2015 Share Posted January 28, 2015 (edited) update: Fix found check post here above update2: Re-written this post since more people have problem with this, so now they will see much faster what my problem was and how to solve this. Issue: Clicking the Add to Compare button does not add the product to compare list.When?: This happens even with a clean install of prestashop 1.6.0.11 (without any changes made) picture of the issue: Edited February 11, 2015 by Crezzur (see edit history) 2 Link to comment Share on other sites More sharing options...
morpheus74 Posted January 28, 2015 Share Posted January 28, 2015 (edited) I have the same problem !!on my web server i receive the following error when I click on the "compare" button [Wed Jan 28 07:12:32 2015] [error] [client 192.168.239.1] script '/var/www/html/index.phpindex.php' not found or unable to stat, referer: http://192.168.239.143/index.php?id_category=21&controller=categoryI think that the error is /var/www/html/index.phpindex.php Edited January 28, 2015 by morpheus74 (see edit history) Link to comment Share on other sites More sharing options...
mikewra Posted January 28, 2015 Share Posted January 28, 2015 funstad, it is not finding your homepage, for reasons I'm not clear on, during the select product to compare process.. And when I tried clicking on the logo to get to the homepage, http://dev.fietsendezwaluw.be/index, it also returned a 404. Try it for yourself using the browser's developer's console and you'll see the error when trying to compare. Link to comment Share on other sites More sharing options...
delete-account-pleas Posted January 29, 2015 Author Share Posted January 29, 2015 its a development site this link works to get to de index page of presta : http://dev.fietsendezwaluw.be/winkel/ Link to comment Share on other sites More sharing options...
mikewra Posted January 29, 2015 Share Posted January 29, 2015 It may be that the development site is confused about where it is. In setting that one up, did you follow all the steps to change location in the database, etc.? See Nemo's video on this beginning around minute 7:30 http://tinyurl.com/nqgurvt Link to comment Share on other sites More sharing options...
delete-account-pleas Posted January 30, 2015 Author Share Posted January 30, 2015 http://dev.fietsendezwaluw.be/webshop/It's a clean install of prestashop 1.6.0.11 Comparison is not working, on multiple computers tested.http://dev.fietsendezwaluw.be/prestashop/clean install of prestashop 1.6.0.9Comparison is working, on multiple computers tested.What is the issue why 1.6.0.11 doesnt work ? Link to comment Share on other sites More sharing options...
delete-account-pleas Posted January 30, 2015 Author Share Posted January 30, 2015 (edited) Error solved but why is no-one else having this problem?in themes/default-bootstrap/js/products-comparison.js Change (used in 1.6.0.11): (WARNING: U have to replace it 2 times in products-comparison.js) url: baseUri + 'index.php?controller=products-comparison&ajax=1&action=' + action + '&id_product=' + productId, To (used in 1.6.0.9): (WARNING: U have to replace it 2 times in products-comparison.js) url: 'index.php?controller=products-comparison&ajax=1&action='+action+'&id_product=' + productId, You can download the file if you want. Download: products-comparison.zip (ps: I quoted out the wrong lines you might need them in the future) Edited February 11, 2015 by Crezzur (see edit history) 1 Link to comment Share on other sites More sharing options...
morpheus74 Posted February 1, 2015 Share Posted February 1, 2015 I have applied the your solution but does not working fine! Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 1, 2015 Author Share Posted February 1, 2015 can you explain your problem and give a link of your site i will look what the problem could be Link to comment Share on other sites More sharing options...
morpheus74 Posted February 2, 2015 Share Posted February 2, 2015 (edited) Hi Funstad, sorry but I have changed the wrong file. I have changed the products-comparison.js of my template and now working fine !!! many thanks Edited February 2, 2015 by morpheus74 (see edit history) Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 2, 2015 Author Share Posted February 2, 2015 your welcome ;-) Link to comment Share on other sites More sharing options...
bruce_ooi Posted February 11, 2015 Share Posted February 11, 2015 Hi Crezzur, I can't thank you enough, you have made my day! I tried to search the solution for this problem for weeks but nothing works. Only when I found this topic, it solve everything, thank you! But I did notice that after I have add products to comparison, I cannot remove the product from the comparison page. I need to click on the "- Add to Compare" in order to remove the product from the comparison page. Do you experience this as well? Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 11, 2015 Author Share Posted February 11, 2015 Hi Crezzur, I can't thank you enough, you have made my day! I tried to search the solution for this problem for weeks but nothing works. Only when I found this topic, it solve everything, thank you! But I did notice that after I have add products to comparison, I cannot remove the product from the comparison page. I need to click on the "- Add to Compare" in order to remove the product from the comparison page. Do you experience this as well? hey bruce_ooi, I have a fully working comparison right now. so applying this changes should do the trick for anyone who has prestashop 1.6.0.11 however did you maybe made some changes during your search to solve this ? if so you might want to undo these changes. I have just looked up which file is responsible for removing the files from comparison this file is the same where i made the changes (products-comparison.js) you might try to change the full source code. with the one i provided in my post. If you have still this problem post your link then i will have a look ;-) Link to comment Share on other sites More sharing options...
bruce_ooi Posted February 11, 2015 Share Posted February 11, 2015 Hi Crezzur, You are right, now I have a fully functioning comparison as well. Thank you for your advise. The reason is that previously I did not notice I also need to change the code at reloadProductComparison(). Well done, Crezzur! Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 11, 2015 Author Share Posted February 11, 2015 (edited) @bruce_ooiGlad you solved the problem as well just added a warning to my post so other people also see you have to change it on 2 lines.enjoy Edited February 11, 2015 by Crezzur (see edit history) Link to comment Share on other sites More sharing options...
jmoianes Posted February 15, 2015 Share Posted February 15, 2015 Thanks a lot! I had the same problem after upgrading to 1.6.0.11 and this solution has fixed it! Thanks Crezzur Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 15, 2015 Author Share Posted February 15, 2015 @jmoianes Enjoy the fix ;-) Link to comment Share on other sites More sharing options...
creative7 Posted September 23, 2015 Share Posted September 23, 2015 I have tried to copy the file to overwrite but wont allow me to overwrite it or change permissions? Says owner is 99 any help greatly appreciated Link to comment Share on other sites More sharing options...
delete-account-pleas Posted September 23, 2015 Author Share Posted September 23, 2015 Ask your webmaster to change the file permission your ftp account doenst have enough permissions Link to comment Share on other sites More sharing options...
iTea Posted December 26, 2015 Share Posted December 26, 2015 PS 1.6.1.2 line 47 change url: baseUri + '?controller=products-comparison&ajax=1&action=' + action + '&id_product=' + productId, to 'index.php?controller=products-comparison&ajax=1&action=' + action + '&id_product=' + productId, AND line 91 change url: baseUri + '?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct, to 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct, 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