• Resolved nathaniel7sg

    (@nathaniel7sg)


    I want to restrict new categories from being created when uploading a CSV file with a category mentioned which is not already there in the website.

    Can anyone help with a snippet or plugin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    By default, the built-in importer automatically creates new categories when there are no existing ones. If you don’t want to assign your products to any categories, you can leave the Categories column blank.

    OR, if you are trying to assign products to existing categories but not working properly, please make sure that the column is formatted properly.

    https://github.com/woocommerce/woocommerce/wiki/Product-CSV-Import-Schema#csv-columns-and-formatting

    Thread Starter nathaniel7sg

    (@nathaniel7sg)

    I am using a multivendor plugin which uses the woocommerce builtin importer, so when a vendor doesn’t follow the instructions and uploads the product of a non-existent category via csv, I want to reject it automatically or make the categories field blank.

    Is it possible?

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hey @nathaniel7sg ??

    At the moment, there’s no default option for that in WooCommerce, and setting that as the default would require quite a bit of additional coding. Please kindly note that this requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    However, I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    If you do require more help with the actual coding, we’d recommend you hire a developer who can take a look at this, quote you for their services and help you add this feature to your site. We’d recommend getting in touch with a web developer or one of the customization experts listed at https://woocommerce.com/customizations/.`

    Cheers.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to restrict Category creation through CSV import’ is closed to new replies.