Error applying pre-tax discount


  • Default avatar
    grupodw    
     7 years ago
    0

    I've created a coupon of 5.50 € discount and to have no problems with billing must be applied before taxes . the problem is that instead of discounting 5.50 € makes me a discount on taxes and other in the total but does not appear in the discount 5.50 . Discount on the total amount appears more.


    Thank you,
  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    In AwoCoupon->configuration, do you have discount before tax set to yes?
  • Default avatar
    grupodw    
     7 years ago
    0

    I enclose a link to screenshots coupon configuration

    http://imgur.com/a/zgBi4
  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    In the image it is calculating discount BEFORE tax. Are you saying you want the discount calculated after tax? Did you update the configuration in AwoCoupon configuration?
  • Default avatar
    grupodw    
     7 years ago
    0

    I don´t want to put the discount after tax . I want to put before taxes, but the amount of discount me the change and does not leave much you 've put € 5.5 as you can see in the screenshots that I have commanded you configuration coupon I have created.
  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    The image you sent is doing discount before tax. If you look on the tax line, there is a -1.23, which is subtracted from the total tax. The discount Virtuemart is displaying is the discount including the tax savings.

    6.73-1.23 = 5.5
  • Default avatar
    grupodw    
     7 years ago
    0

    Hello,

    What you say is correct, but I do not want me add the amount of taxes subtracted from the total coupon, I what I want is that if the coupon is 5.5 the total discount after subtracting taxes is that amount and not the sum . Thus it is now I make a bigger discount what I want to do.

    what I want is that the total purchase discount are 5.5 € and not the sum of the coupon plus the proportionate share of the tax rebate.

    Thank you
  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    You mean you want to display the coupon discount without tax. This is not controlled in AwoCoupon, but instead Virtuemart. So you would have to make alterations to your template to get that to work.

    Find the file:

    www/templates/[YOUR_TEMPLATE]/html/com_virtuemart/cart/default_pricelist.php

    If that file does not exist, then copy this file there:
    www/components/com_virtuemart/views/cart/tmpl/default_pricelist.php

    Then change:

        <td align="right"><?php echo $this->currencyDisplay->createPriceDiv ('couponTax'''$this->cart->cartPrices['couponTax'], FALSE); ?> </td>


    to this
        <td align="right"> </td>


    And this:
        <td align="right"><?php echo $this->currencyDisplay->createPriceDiv ('salesPriceCoupon'''$this->cart->cartPrices['salesPriceCoupon'], FALSE); ?> </td>


    To this:
        <td align="right"><?php echo $this->currencyDisplay->createPriceDiv ('couponValue'''$this->cart->cartPrices['couponValue'], FALSE); ?> </td>