Jump to content

[FIXED] duplicate products


Recommended Posts

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 by rubenvincenten (see edit history)
Link to comment
Share on other sites

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 by scottm (see edit history)
Link to comment
Share on other sites

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 by rubenvincenten (see edit history)
Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...