Commit dc63d5a9 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

AwoCouponV1.2: Fix function signature

parent 1cbfc28c
BASE=awocoupon BASE=awocoupon
PLUGINTYPE=vmshipmentrules PLUGINTYPE=vmshipmentrules
ZIPBASE=opentools_$(PLUGINTYPE) ZIPBASE=opentools_$(PLUGINTYPE)
VERSION=1.1 VERSION=1.2
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
......
...@@ -29,7 +29,7 @@ class plgVmShipmentRulesAwoCoupon extends VmPlugin { ...@@ -29,7 +29,7 @@ class plgVmShipmentRulesAwoCoupon extends VmPlugin {
* available in all rules. * available in all rules.
* Please notice that this function might also be called for only a subset of products of the cart. * 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) // 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 // This does NOT update the cart_prices array, but at least it makes sure Awocoupon has processed the coupon
JPluginHelper::importPlugin('vmcoupon'); JPluginHelper::importPlugin('vmcoupon');
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<creationDate>2014-11-10</creationDate> <creationDate>2014-11-10</creationDate>
<author>Reinhold Kainhofer, Open Tools</author> <author>Reinhold Kainhofer, Open Tools</author>
<authorUrl>http://www.open-tools.net</authorUrl> <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> <license>GPL v3+</license>
<version>1.1</version> <version>1.2</version>
<description>VMSHIPMENTRULES_AWOCOUPON_DESC</description> <description>VMSHIPMENTRULES_AWOCOUPON_DESC</description>
<files> <files>
<filename plugin="awocoupon">awocoupon.php</filename> <filename plugin="awocoupon">awocoupon.php</filename>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment