SHARE
TWEET

Untitled

a guest Nov 15th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { "rules_chicama_pay_one_day" : {
  2.     "LABEL" : "Chicama pay one day",
  3.     "PLUGIN" : "reaction rule",
  4.     "OWNER" : "rules",
  5.     "REQUIRES" : [ "rules", "commerce_product_reference" ],
  6.     "ON" : { "commerce_product_calculate_sell_price" : [] },
  7.     "IF" : [
  8.       { "entity_has_field" : { "entity" : [ "commerce-line-item" ], "field" : "commerce_product" } }
  9.     ],
  10.     "DO" : [
  11.       { "variable_add" : {
  12.           "USING" : { "type" : "decimal", "value" : "0" },
  13.           "PROVIDE" : { "variable_added" : { "oneday_price" : "One day price for this line item" } }
  14.         }
  15.       },
  16.       { "variable_add" : {
  17.           "USING" : { "type" : "decimal", "value" : "0" },
  18.           "PROVIDE" : { "variable_added" : { "booking_days" : "Days" } }
  19.         }
  20.       }
  21.     ]
  22.   }
  23. }
RAW Paste Data
Top