Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Populate Contribution - Struggling with duplicates


Recommended Posts

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

--

Cheers,

 

John

Link to comment
Share on other sites

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 ='';

Link to comment
Share on other sites

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

--

Cheers,

 

John

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...