Category Coupon with no value - Needs to be on invoice - Urgent!


  • Default avatar
    justin0    
     11 years ago
    0

    So I built a Category coupon that needs to have a value of $0.00. When the customer uses it they get a free product. Each invoice needs to show the coupon code but it only displays if there's is a value assigned to it. But if I assign a value it reduces the total of the cart by the value. I can't have that. Please help asap. This is on a live site.
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    AwoCoupon will not accept a coupon unless it has a value. But you can alter this behavior by commenting out one line of code. If using the latest version of AwoCoupon Pro 2, go to

    www/administrator/components/com_awocoupon/helpers/estore/estorecouponhandler.php, around line 1818 is this
    <?php
        
    if(empty($r[1]['force_add']) && empty($r[1]['product_discount']) && empty($r[1]['shipping_discount'])) continue;
    ?>


    comment it out
    <?php
        
    //if(empty($r[1]['force_add']) && empty($r[1]['product_discount']) && empty($r[1]['shipping_discount'])) continue;
    ?>