You are here

function uc_order_condition_total in Ubercart 8.4

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.ca.inc \uc_order_condition_total()
  2. 7.3 uc_order/uc_order.rules.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

File

uc_order/uc_order.rules.inc, line 604
Rules integration for order-related entity events, conditions, and actions.

Code

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