Error Bad value: order_amount when using voucher
-
When a customer uses a voucher on checkout, the cart shows an error message “Bad value: order_amount” and the Klarna payment options don’t show up.
The vouchers worked perfectly fine for 2 years. I didn’t update the Klarna plugin in about 6 months, so I don’t know which version introduced this error.
The vouchers were generated with WooCommerce PDF Produktgutscheine from Skyverge (currently 3.11.0). I’m on Woocommerce 7.40
The voucher was sold as a multi-purpose voucher, meaning that the full value of the voucher was for example 100 Euros and 0% tax. When the voucher is redeemed, the value of the 120 Euro item is reduced by 100 Euros and the remaining value is 20 Euros. The final invoice contains the remaining 20 Euros of the item and also the full tax of the voucher. So the ratio of final amount of the order and the contained tax are very different compared to orders without any redeemed vouchers.
In germany this is the standard procedure for “Mehrzweckgutschein” and worked flawlessly until some time ago.
- The topic ‘Error Bad value: order_amount when using voucher’ is closed to new replies.