Hi everyone!
I just realized, that the tab with payment-methods is not being replaced with the "continue with your free order", when the value of your coupon matches or exceeds the value of your order.
Apparently, this behavior is caused in conjunction with the uc_taxes-module.
To reconstruct this, I modified the js as follows:
function free_order_check_total(total) {
total = parseFloat(total);
console.log("Total: " + total);
In this example, I'm using a product valued at 14,90 Euro, including 19% (2,38 Euro) taxes.
After applying a 100% coupon, I get the following in the log-file:
Total: 2.3800019
So, apparently, not the "0,00 Euro" gets parsed but the "2.38 Euro Taxes"-line.
I'm not shure, weather this behavior should get fixed on the uc_taxes-module or here - but as far as I can see, this seems to be more of an uc_free_order-issue.
Comments
Comment #1
pc-coholic commentedTo confuse things a little more, here another strange thing...
Let's say I have my cart with the mentioned 14.90 Euro-article and my 100%-coupon. Now, I leave /cart/checkout.
After returning to /cart/checkout, I'll see my article together with my coupon and a line saying, this order is 0,00 Euro and the payment-methods are gone and just the "press checkout to continue with your free order" is shown (that message that I was missing in the issue discribed here).
If I now remove my coupon from the cart (just submit the voucher-field with no value), the voucher-value is removed from my order and the payment-methods are shown again (just what you would except to happen).
Now, from our previous experience, you'd say, that applying the 100%-voucher once again would cause again the same bug. But no! This time, the will me 0,00 logged to the console, the payment-methods are removed and the message to continue with your free order is here.
Strange, huh?