This Rules Engine macro allows you to automatically add one or more items to selected orders in bulk. You can specify custom quantities and prices for each item, or use retail/channel prices automatically.
The macro processes selected orders and adds the specified items to each order. For each item, you can control:
| Parameter Name | Type | Description | Example |
|---|---|---|---|
skusList |
String |
List of items to add in format: SKU/Quantity/PriceSeparate multiple items with semicolons ( ;)Price is optional - leave blank to use automatic pricing |
ABC-123/2/15.99;DEF-456/3/ |
useRetailPrices |
Boolean |
Check this box to use retail prices from your inventory Leave unchecked to use channel prices Note: Specific prices in skusList always take priority |
true or false |
The skusList parameter uses a specific format to define which items to add:
SKU/Quantity/Price
SKU: The product SKU (required)
Quantity: Number of units to add (required)
Price: Custom price per unit (optional, leave blank to use automatic pricing)
ABC-123/2/15.99
Adds 2 units of SKU "ABC-123" at $15.99 each
ABC-123/2/
Adds 2 units of SKU "ABC-123" using retail or channel price
ABC-123/1/10.50;DEF-456/3/;GHI-789/1/5.00
• Adds 1 unit of "ABC-123" at $10.50
• Adds 3 units of "DEF-456" with automatic pricing
• Adds 1 unit of "GHI-789" at $5.00
Scenario: Add a free sample to orders
Configuration:
skusList: SAMPLE-001/1/0.00useRetailPrices: falseScenario: Add multiple promotional items at special prices
Configuration:
skusList: PROMO-A/1/9.99;PROMO-B/2/14.99useRetailPrices: falseScenario: Add items using their standard retail prices
Configuration:
skusList: PROD-001/1/;PROD-002/2/useRetailPrices: trueScenario: Add some items at specific prices and others at retail price
Configuration:
skusList: SPECIAL-001/1/5.00;REGULAR-001/2/useRetailPrices: falseResult: SPECIAL-001 uses $5.00, REGULAR-001 uses channel price
The macro will fail if any SKU in the list does not exist in your inventory. Make sure all SKUs are valid before running the macro.
When using retail prices or specific prices, the tax rate from the product's inventory record will be applied automatically.
Items are added using the order's existing fulfillment location. The macro does not change the fulfillment location.