• Resolved Web Expert

    (@seldimi)


    Hello.
    I have discovered a bug. I have set minimum cart total to 20 euro. The COD was visible for 20+ euro (cart + shipping costs), but the extra charge was only applied when the cart total was over 24+ euro (cart + shipping costs). So I have modified function check_cart_amount_restriction() and added.

    if( ! $total ) {
    	$total = $cart->cart_contents_total + $cart->tax_total + $cart->shipping_total;
    }

    I think you should define somewhere in admin, if the amounts are with VAT or not and also include/exclude shippings etc…

    • This topic was modified 6 years, 7 months ago by Web Expert.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BUG: COD visible but not charged’ is closed to new replies.