Inf and NaN cannot be JSON encoded


  • Default avatar
    r.2556    
     2 years ago
    0

    Coupon - Automatic Discounts


    If the VAT rate is 0% for ICL deliveries, the error message "Inf and NaN cannot be JSON encoded" appears in the checkout

    VirtueMart 3.8.8 JoomlA 3.10.5.



    non taxpayer without discount no problem!
    NON TAX PAYER WITHOUT DISCOUNT


    non taxpayer with discount

     


    Result



    Appears in OPC and Standard VM checkout


    Regards Ronald

  • Your avatar
    seyi    
     2 years ago
    0

    Not really sure I understand or where to start with this one.  So this happens even without opc enabled?

    How is the virtuemart calculation rule setup?  And the automatic discount coupon?  In awocoupon configuration how do you have tax rules setup?  What version of AwoCoupon are you using?
  • Default avatar
    r.2556    
     2 years ago
    0

    Thanks for your reply which made me look in the right direction.


    The problem arises when the virtuemart Tax & Calculation Rule 0% VAT is set as Tax per Bill.

    Problem seems to be solved when the setting Vat tax per product is chosen.


    Solved