By default, techOMS allocates orders using the original Product Variant or its alternates defined in the Product Variant SKU file.
Product Variant Mapping and Substitution Order Rules let you bulk-replace a Product Variant in scenarios such as:
- No alternates are configured.
- You need different substitutions based on specific conditions (e.g., ship-to state).
The difference between these rules is:
Product Variant Mapping: Always replaces products with their defined substitutes.
Product Variant Substitution: Replaces products only when they are out of stock.
WARNING: These rules overrides the alternate product library defined in the SKU file.
This rule should be applied on demand only and disabled when not in use. Follow the steps carefully, and make sure to turn the rule off afterward.
This process process has the following main stages:
- Create the Sales Order Rule
- Define the Rule parameters and logic
- Run the Rule
- Verify the logs to confirm results


I. CREATE THE SALES ORDER RULE
Create the Sales Order Rule as detailed in How to Create Sales/Purchase Order Rules [Step-by-step guide].

II. DEFINE THE RULE PARAMETERS AND LOGIC
Follow How to Edit Sales/Purchase Order Rules [Step-by-step guide] to configure the rule logic.
When adding actions, select either Add Product Variant Substitution Action or Add Product Variant Mapping Action in the desired position of the workflow, and configure it as described in the Rules Conditions and Actions Guide [Information].
WARNING: techOMS creates a single Sales Order context for all rules. Configure only one Product Variant Mapping/Substitution table across all rules, or within a single rule, to avoid conflicts.
For example, if you need to replace SKU123 with the following logic:
If SKU123 is out of stock, substitute it with SKU456 (priority 1).
If SKU456 is also out of stock, use SKU789 instead (priority 2).
Configure the Product Variant Substitution action as follows:
WARNING: For this scenario, Backorders must be managed in techOMS. To learn more, refer to: Understanding Backorders in techOMS [Information].
Using this action with Split Shipment is currently unsupported.
On the other hand, if you always need to replace SKU123 with SKU456, regardless of stock, configure the Product Variant Mapping action as follows:


III. RUN THE RULE
1. Click Sales Orders from the left menu under the Sales section.
2. Click the Advanced Filter icon.
3. Enter the SKU for the affected product.
4. Press Apply to display relevant orders.
5. Select applicable orders:
- Orders in Draft status (must be moved to Approved before processing).
- Orders in Approved status that do not contain shipments.
6. Press Actions.
7. Select Allocate & Fulfill Orders.
This triggers the rule.
IV. VERIFY THE LOGS TO CONFIRM RESULTS
1. Click Logs from the left menu under the Sales section.
2. Locate and click on the entry for the rule run.
3. Review the results to confirm that the replacements were applied correctly.
Repeat this process for any additional Product Variants that require replacement. Once finished, disable the Sales Order Rule as detailed in How to Enable/Disable a Sales/Purchase Order Rule [Step-by-step guide] to prevent unintended replacements in future orders.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article