Problem with coupon calculation in Redshop


  • Default avatar
    kblack21    
     12 years ago
    0

    Hey I've been using the coupon on my site and for some reason even if tell redshop to give me a discount with the vat it still always calculates with the VAT when I use AWO. Is there any reason why this might be.

    Also i'm not sure if your familiar with the {discount_in_percent} tag in redshop, but whenever i use the AWOcopon it give me the worng percent. For ex. I set it up to sae 10% and I get %6.76 or something along those lines, but 10% is removed from the price .

    Any help with these would be appreciated.

    Thankyou
  • Your avatar
    seyi    
     12 years ago
    0

    Here is how to fix the VAT problem:
    in www/administrator/components/com_awocouponrs/helpers/rs_coupon.php, around line 112 is this
    <?php
            
    'product_price' => $this->rscart[$i]['product_price'],
    ?>


    change it to this
    <?php
            
    'product_price' => APPLY_VAT_ON_DISCOUNT $this->rscart[$i]['product_price'] : $this->rscart[$i]['product_price_excl_vat'],                    
    ?>


    For the second problem, this might fix the discount being off. Another thing to note, if you have 3 items in your cart and the discount only applies to one of the items, then the percentage will not be what you setup in the backend.