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
dc63d5a9
Commit
dc63d5a9
authored
May 13, 2017
by
Reinhold Kainhofer
Browse files
AwoCouponV1.2: Fix function signature
parent
1cbfc28c
Changes
4
Hide whitespace changes
Inline
Side-by-side
plugins/awocoupon/Makefile
View file @
dc63d5a9
BASE
=
awocoupon
PLUGINTYPE
=
vmshipmentrules
ZIPBASE
=
opentools_
$(PLUGINTYPE)
VERSION
=
1.
1
VERSION
=
1.
2
PLUGINFILES
=
$(BASE)
.php
$(BASE)
.script.php
$(BASE)
.xml index.html
...
...
plugins/awocoupon/awocoupon.php
View file @
dc63d5a9
...
...
@@ -29,7 +29,7 @@ class plgVmShipmentRulesAwoCoupon extends VmPlugin {
* available in all rules.
* Please notice that this function might also be called for only a subset of products of the cart.
*/
function
onVmShippingRulesGetCartValues
(
&
$cartvals
,
$cart
,
$products
,
$method
,
$cart_prices
)
{
function
onVmShippingRulesGetCartValues
(
&
$cartvals
,
$cart
,
$products
,
$method
)
{
// First, make sure coupons are processes (VM core processes third-party coupons AFTER the shipping)
// This does NOT update the cart_prices array, but at least it makes sure Awocoupon has processed the coupon
JPluginHelper
::
importPlugin
(
'vmcoupon'
);
...
...
plugins/awocoupon/awocoupon.xml
View file @
dc63d5a9
...
...
@@ -4,9 +4,9 @@
<creationDate>
2014-11-10
</creationDate>
<author>
Reinhold Kainhofer, Open Tools
</author>
<authorUrl>
http://www.open-tools.net
</authorUrl>
<copyright>
Copyright (C) 2014, Reinhold Kainhofer
</copyright>
<copyright>
Copyright (C) 2014
-2017
, Reinhold Kainhofer
</copyright>
<license>
GPL v3+
</license>
<version>
1.
1
</version>
<version>
1.
2
</version>
<description>
VMSHIPMENTRULES_AWOCOUPON_DESC
</description>
<files>
<filename
plugin=
"awocoupon"
>
awocoupon.php
</filename>
...
...
plugins/awocoupon/releases/plg_opentools_vmshipmentrules_awocoupon_v1.2.zip
0 → 100644
View file @
dc63d5a9
File added
Write
Preview
Markdown
is supported
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