Coupon discount will be calculated incorrectly


  • Default avatar
    rupi1824    
     11 years ago
    0

    I am using joomla 1.5 with virtuemart version 1.1.9 and AwoCoupon Pro. Coupon type = category and percent discount type = Special, valid for all customers 1x. Store in the coupon discount is calculated but the entered percent (10%) with VAT. I need a calculation of VAT. What am I doing wrong?
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    Can you explain the wrong calculation, maybe give an example of what you are getting and what you want to get?
  • Default avatar
    rupi1824    
     11 years ago
    0

    Hello,
    Here's an example:

    Product A - select category - Price = € 22.50
    Product B - select category - Price = € 22.50
    Product C - not selected category - Price = € 93.90

    Subtotal: € 138.90
    Shipping: 5.18 €
    VAT: € 25.53

    Coupon Discount: - € 5.36 (incorrectly)
    here would - 4,50 € available (product A + B = 10%)
  • Your avatar
    seyi    
     11 years ago
    0

    Is 22.50 the price before VAT? If so have you tried setting enable discount before tax to yes in awocoupon->configuration?
  • Default avatar
    rupi1824    
     11 years ago
    0

    Hello,
    yes - 22.50 is the price before tax and configuration> general> Discount applied before taxes = yes

    Other settings:
    Enable Virtuemart Coupons = yes
    Activate multiple coupons = no
    Enable entry of shipping coupon before shipper is selected = no
  • Your avatar
    seyi    
     11 years ago
    0

    Actually the discount is correct:
    https://awodev.com/blog/virtuemart-coupon-error-discount-before-tax#background

    It should be showing the discount including the discount on tax. The only thing that changes is the tax, it is either discounted or not. Please verify that the vat is discounted.
  • Default avatar
    rupi1824    
     11 years ago
    0

    Hello,
    Thanks for the quick reply. I will try the proposed solution on Monday.
  • Default avatar
    rupi1824    
     11 years ago
    0

    Hi Seyi,

    I've been trying to fix for your disclosures (https://awodev.com/blog/virtuemart-coupon-error-discount-before-tax # background) the error. Unfortunately without success.

    Cart
    Name SKU Price Quantity / Update Subtotal
    Ladies Bars "Lina", left
    Select size: 2
    Selection () 397-1 € 22.50
    € 22.50
    Ladies Bars "Lina", right
    Select size: 2
    Selection () 397-2 € 22.50
    € 22.50
    Sub-total: € 45.00
    Tax: € 8.55
    Coupon Discount: - € 5.36

    Final total: € 53.55

    What am I doing wrong?
  • Default avatar
    rupi1824    
     11 years ago
    0

    Hi Seyi.
    I solved the problem with the TVA thanks to your help.
    Well unfortunately a new problem arises.
    When a new customer registers in the shop, and ordered the first time in the cart enters their coupon code, it is not recognized. Is there a solution?
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    Not that I know of, I am not familiar with such a problem where entering the code the first time it is not recognized. did you make edits to the code? If so, I would suggest backing it up, adding the default virtuemart files and testing it to see if it is an edit you added.