Help Center

Feed rules: calculator function

GoDataFeed API Integration
GoDataFeed API Integration
  • Updated
Number Function rules can only be applied to numeric fields. Learn more about Data Types.

 

 

Apply basic arithmetic to the numeric fields in your data feed with a custom rule. 

Calculator_rule_1.PNG

 

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

  1. Name rule
  2. SET the feed field you would like to adjust
  3. 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 /
    • ]] Close the formula with two closing brackets
  4. WHERE for all products or some products conditionally
  5. Save the rule

Was this article helpful?

2 out of 2 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.