johngroves Posted July 11, 2006 Share Posted July 11, 2006 Hi All, I've installed the Easy Populate contribution and I have almost got it working. I have downloaded the text file with my data in it which is around 250 products. Opened the txt file with open office calc and can see all of my product details. I have updated the products model field so each product has an individual product number. I then save my csv file and upload it via easypopulate. Upon importing to the database, all of my existing products are duplicatd because I think it's thinking because there is a new product number, it is in effect a new product. How can I update my product_model details without duplicating my products? Or as an alternative, is there an easy way to delete all products that do not have a product_model? I've searched the forums but I can't ind anything. Any pointers are appreciated. Cheers, John Quote -- Cheers, John Link to comment Share on other sites More sharing options...
choosealogin Posted July 11, 2006 Share Posted July 11, 2006 Upon importing to the database, all of my existing products are duplicatd because I think it's thinking because there is a new product number, it is in effect a new product. You're correct. EP uses the products_model field as sort of a switch...when it sees a new model number, it makes a new product, when it sees an existing model number it looks for changes it needs to make to that product, and when it sees no model number it ignores the whole row and stops running through the file. You can run this query in phpmyadmin to delete products that have an empty model field. Please backup your database before doing this. DELETE FROM products WHERE `products_model`=''; At the end, those are 2 single quote marks =''; Quote Link to comment Share on other sites More sharing options...
johngroves Posted July 11, 2006 Author Share Posted July 11, 2006 Hi, Thanks for the feedback. Thinking of it literally, I thought that if this was the case where any products that don't have a model number will be treated as new products, I decided to delete my entire catalog of products and update my products with my modified csv. Thanks for your feedback though. Cheers, John Quote -- Cheers, John Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.