Task
Preorder products should keep selling when stock is zero, while regular products should not.
Short answer
Create Continue selling when out of stock: default to deny, and set continue for preorder or backorder.
How to Do It in Eofferix
Method 1: How to Do It in Eofferix with Regular Expressions
- Open the settings of the output
Continue selling when out of stockcolumn.
The click is on the settings icon of the output Continue selling when out of stockcolumn. - In
Transformations, setdenyby default and add a separate rule forpreorder|backorder.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Method 2: How to Do It in Eofferix with Substring Search
- Open the settings of the output
Continue selling when out of stockcolumn. - In
Transformations, replace the regular expression with separate rules for each text marker.If the source column contains longer phrases, get the same result without a regular expression: add several rules with
Contains substring, one rule for each marker.Order What to check Condition Action 1 Current value Any Replace with deny 2 sales_policy Contains substring preorder Replace with continue 3 sales_policy Contains substring backorder Replace with continue 
In the second method, each text marker uses Contains substring; the numeric1marker uses an exact comparison. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| Handle | Title | sales_policy |
|---|---|---|
| preorder-lamp | Preorder lamp | preorder |
| regular-chair | Office chair | regular |
After
result| Handle | Continue selling when out of stock |
|---|---|
| preorder-lamp | continue |
| regular-chair | deny |