How to batch alter SKU numbers?
-
Can anyone suggest ways to batch alter all of the SKU numbers on all of the products in the WooCommerce database?
We need to add a suffix to EVERY SKU number (or it it is much easier or the only option, a pre-fix would work too.) Far example, change:
1111 into 1111-sp
1112 into 1112-sp
12345 into 12345-sp
etc.Background if this is helpful:
We have a distributor’s website with an extensive product catalog of products. We are setting up a new website for a new division of theirs which will contain largely the same catalog of items. We plan to import the products database from the existing website into the new site. We plan to rewrite the product descriptions to help avoid search engine duplicate content penalties. Then we need to modify the SKU numbers.Most of the products are “variable” products with the SKU numbers entered into the variations.
We can do this via phpMyAdmin, or by using a WP search-and-replace plugin like Better Search and Replace.
Any ideas?
- The topic ‘How to batch alter SKU numbers?’ is closed to new replies.