Function - return the discount / or price discounted


  • Default avatar
    heraldinio    
     8 years ago
    0

    i have the following question: Is any function that i could call that returns the value or the percent of discount or discounted price for a certain product applyind a certain coupon ?

    function(sku,counpon)

    i would like to use the function not only in cart, but in any other product page, allowing customer to know their discount when appling their coupon on a certain product

    Thanks
  • Your avatar
    seyi    
     8 years ago
    0

    Hello,

    There is not a function that does this. The functions built are so tightly coupled with the cart, that you would have to build out another function that would do it.

    You can find the function that calculates the discount here:
    www/administrator/components/com_awocoupon/helpers/estore/estorecouponhandler.php, function checkDiscount
  • Default avatar
    heraldinio    
     8 years ago
    0

    Hi Seyi,
    Thank you very much for your reply