Forums
Forums / Plugin: WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / Import to categories by IDs
(@drmfl)
9 years, 4 months ago
Hello. Can i assign product to some category by category id and how? Because, I’ve found only import by name of the category. Thank you 🙂
(@wpallimport)
Hi @drmfl
There are 2 ways to do this:
1) Use the “Enable Mapping for Product Categories” setting so you can set up rules to convert the category IDs to their names.
2) You can use a custom PHP function in the import to return the category names based on their ID. If you’re using WooCommerce, here’s a good answer on how to write the function: http://stackoverflow.com/a/22844327
The topic ‘Import to categories by IDs’ is closed to new replies.