You are here

function uc_order_condition_total in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_order/uc_order.rules.inc \uc_order_condition_total()
  2. 6.2 uc_order/uc_order.ca.inc \uc_order_condition_total()

Compare order total.

Parameters

object $order: The order to check.

string $op: The comparison operator.

float $value: The target value.

Return value

bool Whether the order total meets the specified condition.

See also

uc_order_condition_value_operator_options

1 string reference to 'uc_order_condition_total'
uc_order_rules_condition_info in uc_order/uc_order.rules.inc
Implements hook_rules_condition_info().

File

uc_order/uc_order.rules.inc, line 898
Hooks and functions for uc_order Rules integration.

Code

function uc_order_condition_total($order, $op, $value) {
  return uc_order_condition_value_operator_comparison($order->order_total, $op, $value);
}