Note: Number Function rules can only be applied to numeric fields. Learn more about Data Types.
Apply basic arithmetic to your numeric fields in your data feed with a custom rule.
Examples
Static Text: Orange, Fields: Blue
Add 20% to price for a markup
[[
[P].[price]
+
(
[P].[price]
*
.2
)
]]
Multiply Price by .7 to discount price by 30%
[[
[P].[price]
*
.7
]]
Subtract 2 from Quantity to create a buffer
[[
[P].[quantity]
-
2
]]
Create a calculator function
- Name rule
- SET the feed field you would like to adjust
- TO create a calculation
-
[[
Start the formula with two opening brackets - Select your number field from your product catalog - fields starting with [P]
- Use any common operator in your formula, such as,
- Subtraction
-
- Addition
+
- Multiplication
*
- Division
/
- Subtraction
]]
Close the formula two closing brackets
-
- WHERE for all products or some products conditionally
- Save rule
Comments
0 comments
Please sign in to leave a comment.