Auto-Assignment for New Products
You don't need to manually run a bulk assignment every time you add a new product to your catalog. The Import EAN UPC Barcodes plugin includes an auto-assignment engine that runs seamlessly in the background whenever a product is created.
Configuring the Rule
Navigate to Webkul WC Addons > UPC/EAN Codes and click on the New Products & Settings tab.
Here you will find the New Product Auto-Assignment setting. You can choose one of three behaviors:
1. Generate Free Code
If this option is selected, the plugin will instantly engage its built-in generator every time a new product is saved. It will calculate a mathematically valid EAN-13 or UPC-A barcode using your configured prefix, ensure it's completely unique, and save it directly into the new product's destination field.
2. Assign Next Imported Code
If this option is selected, the plugin will look into your pool of imported sequential codes. It will claim the next available code from the top of the pool and assign it to the new product.
If your pool is empty, the plugin will log an alert, and the product will be saved without a barcode until you upload a new batch.
3. Do Nothing
If this option is selected, the plugin will ignore new products. You will need to assign barcodes manually by typing them into the product edit screen, or by running a bulk assignment later.
Supported Creation Methods
The auto-assignment rule hooks deeply into WooCommerce core and is triggered reliably regardless of how the product is created:
- WP Admin: Clicking "Add New Product" in the WordPress dashboard.
- REST API: Products created automatically by external ERP systems, mobile apps, or dropshipping sync tools via the WooCommerce REST API.
- CSV Import: Products created during a standard WooCommerce CSV product import.
