Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VirtueMart
Shipping by Rules for VirtueMart
Commits
a7bcc16b
Commit
a7bcc16b
authored
Jul 14, 2015
by
Reinhold Kainhofer
Browse files
V5.5: evaluate_for_skus is a scoping function...
parent
e200a1a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
releases/plg_opentools_vm_rules_shipping_advanced_v5.5.zip
View file @
a7bcc16b
No preview for this file type
releases/plg_opentools_vm_rules_shipping_v5.5.zip
View file @
a7bcc16b
No preview for this file type
rules_shipping_base.php
View file @
a7bcc16b
...
...
@@ -1321,7 +1321,7 @@ class ShippingRule {
// The scoping functions need to be handled differently, because they first need to adjust the cart variables to the filtered product list
// before evaluating its first argument. So even though parsing the rules handles scoping functions like any other function, their
// evaluation is fundamentally different and is special-cased here:
$scoping_functions
=
array
(
"evaluate_for_categories"
,
"evaluate_for_products"
,
"evaluate_for_vendors"
,
"evaluate_for_manufacturers"
);
$scoping_functions
=
array
(
"evaluate_for_categories"
,
"evaluate_for_products"
,
"evaluate_for_skus"
,
"evaluate_for_vendors"
,
"evaluate_for_manufacturers"
);
$is_scoping
=
is_array
(
$expr
)
&&
(
$expr
[
0
]
==
"FUNCTION"
)
&&
(
count
(
$expr
)
>
1
)
&&
in_array
(
$expr
[
1
],
$scoping_functions
);
if
(
is_null
(
$expr
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment