Payment Processing Error When Gift Certificate is Greater Than Cart Total


  • Your avatar
    seyi    
     5 years ago
    0

    Hey everybody,

    I have recently purchased AwoCoupon and cannot say enough about how great this component is. Seyi has done a wonderful job and his level of support is great.

    I have come across one error that I cannot seem to fix... I have exhausted all my resources and am desperate for a fix.

    Here is the deal: We have created two gift certificates ($25 and $50) and purchasing them works like a charm... the email with certificate is mailed without any issue. However, THE ISSUE IS when we try to redeem the gift certificate for a product that is less than the value of the gift certificate, it will not process. The shopping cart shows a total price of $0.00 so the payment process is getting confused (I assume).

    It seems like there should be a fix for this. I am no PHP expert, but it seems like the logic would be as follows: IF coupon code is used AND shopping cart total equals $0.00 THEN bypass the payment processor and just accept the transaction.

    Any help would be much appreciated.

    Thanks,
    Adam
  • Your avatar
    seyi    
     5 years ago
    0

    Ah yes, the payment processor should be totally bypassed if the order total is 0. I found that there is sometimes a rounding issue that causes it not to be bypassed, here is the fix:

    http://awodev.com/forum/awocoupon/help-section/coupon-value-exceeds-total-order#comment-335

    hope that works