[Resolved] Discount incorrect after upgrading from Free to Pro


  • Default avatar
    lori74    
     12 years ago
    0

    I've installed the latest Pro version over a Free version on my localhost test site. When running a test on a 10% off coupon for a $68 item, I'm getting a discount amount of $7.41. I've applied the coupon while just viewing the cart, so no tax or shipping calculations have taken place yet. Can you assist me with this? Suggest somewhere to look?
  • Default avatar
    lori74    
     12 years ago
    0

    I found a way to fix this, although it required a change to your code. I set $my_taxrate to 0 at line 127 of ps_coupon_process.php. I'm not sure why the discount is being applied to both the product price AND the tax amount. I set "Subtract payment discount before tax/shipping" in my VM configuration to true.
  • Your avatar
    seyi    
     12 years ago
    0

    what version of virtuemart are you using? I do not think you need to edit the code. Revert it back and in awocoupon->configuration, set "Calculate the discount before tax" to yes.