Can't apply multiple gift cerificate code


  • Your avatar
    seyi    
     4 years ago
    0

    Hi,

    I'm using J2.5.2 and AWOCoupon 2.0.6

    It can apply with multiple coupon code, but not with multiple gift certificate code.

    I think in common sense, it should allow customer to enter multiple gift certificate code (since they may have 2 cards $50 and $100 card from 2 friends) but single coupon code for each order only (you only want customer have 10% in Easter Holiday for example)

    Hope your quick response.

    Thanks
  • Your avatar
    seyi    
     4 years ago
    0

    You are right, it should work. There is a little problem with the sql statement and to get it to work you would need to edit code.

    in www/administrator/components/com_awocoupon/helpers/vm_coupon.php, around line 184 is this:

    <?php
           
    AND function_type2!="parent"
    ?>


    change it to this:
    <?php
           
    AND (function_type2 IS NULL OR function_type2!="parent")
    ?>


    This will be fixed in the next update.
  • Default avatar
    bergagna    
     4 years ago
    0

    Thanks. It works,

    It should be replaced in line 367.

    Just like I mentioned above, for the coupon I think there should be option to set only ONE coupon can be used for each order.

    Regards,