MrBaseball34 Posted August 3, 2010 Share Posted August 3, 2010 Go to http://www.mechanictoolsonline.com, search for OME29023There is only ONE of these products in the ps_products table.Why would 3 show in this list? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 3, 2010 Author Share Posted August 3, 2010 OK, I narrowed down this problem. We use a custom import routine for our vendor's inventory. I recently added a function to insert records into the ps_image table for "forward compatibility"; we currently use a column called hack_image in ps_product for the product image but I digress.Anyway, the ps_image table does not have a unique index on it and you can insert multiple records with the same id_product, position and cover.I look at this as bad architecture as the JOIN in the Search class cause multiple products to show when you have one product in ps_product but multiple records for that product in ps_image. Link to comment Share on other sites More sharing options...
Recommended Posts