If you are using Virtuemart 2.0.26, there have been changes to the way the coupon functionality works that is affecting AwoCoupon in a bad way. The changes originated from this discussion:
http://forum.virtuemart.net/index.php?topic=120972
I have requested that certain code be added to Virtuemart but until that happens, at this point the history of uses is not recorded. This affects
- number of uses
- gift certificates
- if using AwoAffiliate, calculationg commision
- if using AwoRewards/AwoReferral, calculatin rewards for referrals
First make sure you are using the latest version of AwoCoupon Pro and then add the code below:
in www/components/com_virtuemart/helpers/coupon.php, around line 149 is this
Right after that, add this
http://forum.virtuemart.net/index.php?topic=120972
I have requested that certain code be added to Virtuemart but until that happens, at this point the history of uses is not recorded. This affects
- number of uses
- gift certificates
- if using AwoAffiliate, calculationg commision
- if using AwoRewards/AwoReferral, calculatin rewards for referrals
First make sure you are using the latest version of AwoCoupon Pro and then add the code below:
in www/components/com_virtuemart/helpers/coupon.php, around line 149 is this
<?php
static public function setInUseCoupon($code, $in_use=true){
?>
Right after that, add this
<?php
JPluginHelper::importPlugin('vmcoupon');
$dispatcher = JDispatcher::getInstance();
$returnValues = $dispatcher->trigger('plgVmCouponInUse', array($code));
if(!empty($returnValues)){
foreach ($returnValues as $returnValue) {
if ($returnValue !== null ) {
return $returnValue;
}
}
}
?>