Value definitions have stopped working entirely since this update. I have tried everything I can think of with no luck. It just does not apply a discount at all if you use this. If I use just the value field it works fine. I need a solution to this really quickly. There is a sale i need to put up for a client and this is not possible because of this.
Hiksahop 2.3.0 awo coupon 22.214.171.124 and value definitions are no longer working
- I know there is definitely something wrong because downgrading fixed the issue. I am just not sure what changed to cause this. Here is what I have set below:
Function Type: Coupon
Function Type 2: Product
Coupon Code: OFFSIMMONSMAT
Percent or Amount: Amount
Discount Type: Specific
Value Definition: 1-300;2-600;3-900,4-1200;
Number of Uses: blank
Minimum Value: blank
Asset Type: product set to include with the products i want included.
All optional fields are empty except the date i listed above.
I am not sure what changed since version 2.2.6. Basically if you use value definition the coupon does not even show up at all when you go to checkout it is like you did not even put a coupon in the back.
I also set this coupon to automatic as well.
Everything seemed to be working fine until you made a recent change to the interface on the backend.
- Ok thanks, was able to reproduce.
Here is the fix:
in www/administrator/components/com_awocoupon/helpers/estore/estorecouponhandler.php, around line 1276 is this:
if($curr_qty < $min_qty) continue;
if($curr_qty > $max_qty) continue;
Change it to this
if(!empty($min_qty) && $curr_qty < $min_qty) continue;
if(!empty($max_qty) && $curr_qty > $max_qty) continue;
That should fix the probblem.