Hiksahop 2.3.0 awo coupon 2.3.3.1 and value definitions are no longer working


  • Default avatar
    christiana    
     2 years ago
    0

    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.
  • Default avatar
    christiana    
     2 years ago
    0

    Hi this is most definitely a bug. I downgraded to an older version i had on my desktop 2.2.6 of awo coupon pro and the value definitions started working again without changing anything in my coupons
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    I am not producing any problems with value definitions in testing. Can you give me the details of exactly how you have the coupon set up?
  • Default avatar
    christiana    
     2 years ago
    0

    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
    Published: Published
    Percent or Amount: Amount
    Discount Type: Specific
    Value: blank
    Value Definition: 1-300;2-600;3-900,4-1200;
    Number of Uses: blank
    Minimum Value: blank
    Expiration: 2014-12-01

    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.


    Josh

  • Your avatar
    seyi    
     2 years ago
    0

    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:

    <?php
        
    if($curr_qty $min_qty) continue;
        if(
    $curr_qty $max_qty) continue;
    ?>


    Change it to this

    <?php
        
    if(!empty($min_qty) && $curr_qty $min_qty) continue;
        if(!empty(
    $max_qty) && $curr_qty $max_qty) continue;
    ?>


    That should fix the probblem.
  • Default avatar
    christiana    
     2 years ago
    0

    I cant seem to upgrade from version 2.2.6 now I am getting this error
    Table 'adenenc_gnstrs.hkta4_awocoupon_giftcert_order' doesn't exist SQL=ALTER TABLE hkta4_awocoupon_giftcert_order DROP PRIMARY KEY
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    It seems that you already upgraded this installation at one point. Think your database is up to date.

    Just manually copy the files:
    admin->administrator/components/com_awocoupon
    site->components/com_awocoupon
    media->media/com_awocoupon