Precisely control ID field
-
I’ve been mucking around with WooCommerce (new install of WooCommerce on an existing site with existing content).
I need to be able to precisely control the ID field because the site owner wants to have a PDF that gets sent to customers that uses the Add To Cart link where the Product ID and SKU are identical. The reason is when the customer orders SKU 100 then they click on the link that /checkout/add-to-cart=100
The problem I have is that I imported a CSV with no IDs, so deleted all the products and loaded a new CSV with the ID and now I get an error that 940 products were skipped (I’m trying to import 945) because “A product with this ID already exists”. Even the ones that are imported, the ID is wrong (it’s auto-assigned and doesn’t match the CSV file).
The SKU # ranges from 1 to 19000 but obviously there’s lots of gaps because there’s only 945 SKUs in total.
Is there a way to do this with ID, or is it possible to use the SKU ?
I have to do something programmatically, I just don’t have the time to manually change ~1000 SKUs
The topic ‘Precisely control ID field’ is closed to new replies.