Rule 333 Create product variants
Introduction
Rule 333 automates the creation of individual product variants from a master style template in ParagonERP. The product variants principle requires a hierarchy of 3 layers:
- Master design: also called style or style master
- Master / fabric design: a style (design) in a specific color (fabric), also called style color master
- The actual product: a style (design) in a color (fabric) in a size, called style color size
This rule automatically creates all the individual sizes and variations you need to sell. The rule works with the following attributes within the product information:
- Apparel Product Type (to be Product hierarchy) - Identifies what stage a product is at (Style Master, Style Color Master, Style Color Size)
- Style - The base style code (like "SHIRT-001")
- Color - The color of the product
- Size - Individual size values
- Scale - A size range grouping (like "Adult Sizes" or "Kids Sizes") that determines which sizes are available
- Styles Created - A flag marking whether sizes have already been generated for this style
- UPC Product - Indicates if UPC codes should be generated
Prerequisites
For this process to work, you need:
- A style master product that has a style code and a scale assigned;
- A scale configuration that maps which sizes should be created.
Step-by-Step Process
Step 1:
Go to the product module by clicking on the product icon in the more menu or from the navigation bar on the right side of the main screen.

Step 2:
To create a new style click the add new button located in the top left corner. This will bring up the new product screen.
![]()
Step 3:
On this screen you will need to enter the details of your style. You are creating a Style Master.
- Enter the style code into the code field (Mandatory)
- Enter the same style code into the style field (Mandatory)

Do not fill in color and size, since you are creating a Style Master
- In the product attributes section, fill the attributes that will apply to all styles independent of the color or sizes (these attributes will copy into all colors and sizes for that style).
-
- Make sure you select a scale for the style.
- Check the box for “UPC Product?” if the style has a UPC (This will mark the style for the system to generate a UPC#)
![]()
Step 4:
When you are finished entering all of the information for your style, click the save button in the bottom right corner.
![]()
Do not activate the product, as the Style Master record should be always inactive.
Step 5:
Once you have saved, your style master is created. The next step is to run the rule to create your style/colors and style/color sizes.
To do so, click on the action button in the bottom right corner. Click on the button labeled create colors and sizes. This action button only appears for style master products. The rule will create sizes according to the scale you have put on the style master.

Step 6:
The final style creation modal will show up. Simply select the colors you need from the dropdown. You can create multiple colors at once if you need to. Then click the checkmark to accept/finalize your choices.

For each color selected in the dialog, the rule creates a style color master product:
-
Product naming: Style-Color (e.g., "SHIRT-001-RED")
-
Properties:
-
Status: Inactive
-
Apparel Product Type: Style Color Master
-
Has the style value
-
Has the color value
-
Has styles created flag set to 1
-
Copies the bill of materials from the source product
-
Step 7: Create individual size products
For each style color master created, the rule creates products for every size in the scale:
- Product naming: Style-Color-Size (e.g., "SHIRT-001-RED-MEDIUM")
- Properties:
- Status: Active (ready to sell)
- Apparel Product Type: Style Color Size
- Has the style value
- Has the color value
- Has the scale value
- Has the size value
- Copies the bill of materials from the source product
Special formatting: Sizes under 10 get a leading zero (e.g., "SHIRT-001-RED-08" for size 8)
Step 7b: Copy Product Information
All relevant attribute values (except size, color, product type, and a few others) are copied from the style color master to each newly created product. This ensures consistency across the product line.
Step 8: Mark as complete
The rule marks all processed style color master products with the styles created flag set to true, so they won't be processed again.
Step 9: Get notified when all products are created
Finally, it sends notifications to update the system about all the new and modified products, and displays a success message of each successfully created product.
In simple terms: This rule takes your style master and color combinations and automatically fans them out into all the individual size products you need to manage inventory and sales, while maintaining consistency in product information and bill of materials across all variants.

Summary
Rule 333 doesn't generate the SKU and UPC codes. It only controls whether UPC codes should be generated by setting or removing a flag (upcProduct attribute).
The actual UPC generation requires rule 296. Speak to your system administrator or contact ParagonERP to install this rule if required.
Related articles