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
98ad29d2
Commit
98ad29d2
authored
Oct 13, 2014
by
Reinhold Kainhofer
Browse files
V4.3: Product packageing is product_packaging now
parent
87c4fa0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
rules_shipping_base.php
View file @
98ad29d2
...
...
@@ -500,9 +500,9 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
$dimensions
[
'totalheight'
]
+=
$h
*
$product
->
quantity
;
$dimensions
[
'maxheight'
]
=
max
(
$dimensions
[
'maxheight'
],
$h
);
$dimensions
[
'minheight'
]
=
min
(
$dimensions
[
'minheight'
],
$h
);
$dimensions
[
'totalpackaging'
]
+=
$product
->
packaging
*
$product
->
quantity
;
$dimensions
[
'maxpackaging'
]
=
max
(
$dimensions
[
'maxpackaging'
],
$product
->
packaging
);
$dimensions
[
'minpackaging'
]
=
min
(
$dimensions
[
'minpackaging'
],
$product
->
packaging
);
$dimensions
[
'totalpackaging'
]
+=
$product
->
product_
packaging
*
$product
->
quantity
;
$dimensions
[
'maxpackaging'
]
=
max
(
$dimensions
[
'maxpackaging'
],
$product
->
product_
packaging
);
$dimensions
[
'minpackaging'
]
=
min
(
$dimensions
[
'minpackaging'
],
$product
->
product_
packaging
);
}
}
...
...
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