Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
VirtueMart
Shipping by Rules for VirtueMart
Commits
41fd5a2e
Commit
41fd5a2e
authored
Aug 02, 2015
by
Reinhold Kainhofer
Browse files
Fix shipping rate 0 without shipping=
parent
48d90326
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/rules_shipping_framework.php
View file @
41fd5a2e
...
...
@@ -515,7 +515,7 @@ class ShippingRule {
/* In the advanced version, all conditions and costs can be given as a full mathematical expression */
/* Both versions create an expression tree, which can be easily evaluated in evaluateTerm */
$rulepart
=
trim
(
$rulepart
);
if
(
empty
(
$rulepart
))
return
;
if
(
!
isset
(
$rulepart
)
||
$rulepart
===
''
)
return
;
// Special-case the name assignment, where we don't want to interpret the value as an arithmetic expression!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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