Skip to content
Snippets Groups Projects
Commit 55220951 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V1.1: Release

parent e9c2eb30
No related branches found
No related tags found
No related merge requests found
......@@ -908,7 +908,11 @@ class ShippingRule {
$op = array_shift($expr); // ignore the "FUNCTION"
$func = array_shift($expr); // The scoping function name
$expression = array_shift($expr); // The expression to be evaluated
$conditions = $expr; // the remaining $expr list now contains the conditions
// the remaining $expr list now contains the conditions. Evaluate them one by one:
$conditions = array();
foreach ($expr as $e) {
$conditions[] = $this->evaluateTerm($e, $vals, $products, $cartvals_callback);
}
return $this->evaluateScoping ($expression, $func, $conditions, $vals, $products, $cartvals_callback);
} elseif (is_array($expr)) {
......
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment