Originally Posted by
schoolboy
Yes... good habit to get into when entering new records.
Now, to get rid of all those duplicates...
Via EP, get a full dump of the current product database. Remember, this will be a TXT file, so when you import that into a spreadsheet, it will probably retain the leading zeros.
SORT the spreadsheet by v_products_model column.
DELETE (from the sheet) all products that HAVE the leading 0.
You are now left with product records that do NOT have the leading zero.
REMOVE all columns except:
v_products_model
v_status
EOREOR
Set all values in v_status to 9
NEXT STEP IS IMPORTANT...
On your host admin C-Panel, make a copy of the images folder - call it images1 or something.
The reason for this is that v_status = 9 has a tendency to delete the product data AND its associated image. If it does delete the image, you have a quick backup... Just delete the original images folder and re-name images1 to images.
When you have a backuop images folder, run that tab-delimited file through EP. All those dupe products will go.
(I do this quite often with discontinued products from my stupplier - several hundred a week. I do a FULL BACKUP of the db first... !)
Bookmarks