rubenvincenten Posted December 27, 2012 Share Posted December 27, 2012 (edited) For some reason I'm getting duplicate products all of a sudden. This happens in the backend product list view, the search controller but somehow not on the category controller. The id of the duplicate products is the same however. Products are really simple, no combinations, custom features or attributes or anything. Can anyone help? Also, I can not edit a category text without accidently erasing the category image... EDIT: It seems the problem with the duplicate products was caused by a duplicate tax rule that one of my colleagues accidently added. Edited December 28, 2012 by rubenvincenten (see edit history) Link to comment Share on other sites More sharing options...
scottm Posted December 27, 2012 Share Posted December 27, 2012 (edited) Hello rubenvincenten, I don't have an answer for your duplicate products yet, but I can help with the disappearing image when editing the category description. You will need to open /controllers/admin/AdminCategoriesController.php Look for the function named: postProcess() (It found it on line 507) Replace the line below (for me this was at line 511): if (Tools::isSubmit('forcedeleteImage') || isset($_FILES['image'])) with: if (Tools::isSubmit('forcedeleteImage') || ( isset($_FILES['image'] ) && $_FILES['image']['size'] > 0 )) After duplicating your error and then adding the fix, I was able to edit category description without losing the image. I cannot take credit for the fix, as I found that here: http://forge.prestas...owse/PSCFV-4844 Best Regards, Scott M Edited December 27, 2012 by scottm (see edit history) Link to comment Share on other sites More sharing options...
rubenvincenten Posted December 28, 2012 Author Share Posted December 28, 2012 (edited) Hello Scott, Thanks for the category image fix. My problem with the duplicate products still exists however. I'm running version 1.5.2.0. So if anyone can tell me in what commit this was fixed or what I need to check that would be awesome. Made an issue on JIRA: http://forge.prestas...owse/PSCFV-6385 EDIT: fixed, see first post. Edited December 28, 2012 by rubenvincenten (see edit history) Link to comment Share on other sites More sharing options...
Arafat Jahan Posted March 5, 2013 Share Posted March 5, 2013 This will Solve the issue http://www.prestashop.com/forums/topic/195413-duplicate-products-on-front-end/ Link to comment Share on other sites More sharing options...
Recommended Posts