Display coupon calculation without tax


  • Default avatar
    philippe16    
     4 years ago
    0

    Hello,

    How can I dsiplay the result of a discounted coupon on price without tax?
    I'm working on a website for professional users, and they do not display taxes in the cart.

    Calculation aren't false, but the display is not understable by client, if they do the calculation they don't find the good price.
    (for example a 10% coupon for a product at 100€ without tax should display a coupon of 10€, but it displays a coupon of 12€)
    Here's a screenshot with a visual example:
    https://nimb.ws/piSjWI

    How can I change that ?

    Thanks for your help
  • Your avatar
    seyi    
     4 years ago
    0

    Hello,

    In awocoupon > configuration, do you have "discount before tax coupon" set to "yes"?
  • Default avatar
    philippe16    
     4 years ago  last edited 4 years ago
    0

    Sorry for the delay, I didn't see your message.
    Yes, for both Certifcates and Coupons https://nimb.ws/s16ubN
    Regards
  • Your avatar
    seyi    
     4 years ago
    0

    And in Virtuemart, how is your tax calculation rule setup?
  • Default avatar
    philippe16    
     4 years ago
    0

    I have two tax rates, setup as follow: https://nimb.ws/jher8C

    And here's the price configuration: https://nimb.ws/ZlYwXj

    Regards
  • Your avatar
    seyi    
     4 years ago
    0

    Ok, looking at vponepagecheckout, it always shows the full coupon amount.  So you would need to modify it.

    in the file www/plugins/system/vponepagecheckout/cart/tmpl/default/default_pricelistnarrow.php, somewhere in the file is this:
    <?php
     
    echo $this->currencyDisplay->createPriceDiv ('salesPriceCoupon'''$this->cart->cartPrices['salesPriceCoupon'], false); 
    ?>


    <?php
     
    echo $this->currencyDisplay->createPriceDiv ('salesPriceCoupon'''$this->cart->cartPrices['salesPriceCoupon'] - $this->cart->cartPrices['couponTax'], false); 
    ?>


    In reality you should override this file so that it survives updates.  Do not remember where it is exactly so you would need to contact vp one page if you want to go that route.


  • Default avatar
    philippe16    
     4 years ago  last edited 4 years ago
    0

    Thanks, it's ok with that modification.
    I did an override.
    Thanks for your help!
    Best regards