Cart and Checkout Subtotal Mismatch
-
I want to remove the default selected state from the checkout form. So, I used this hook and working fine:
add_filter( 'default_checkout_billing_state', 'change_default_checkout_state' ); add_filter( 'default_checkout_shipping_state', 'change_default_checkout_state' ); function change_default_checkout_state() { return ''; // state code }
But, when I use this the calculation on checkout page subtotal is not equal to cart page subtotal. When we select the state on the checkout page then calculation on the checkout page is correct.
Example:
Cart Page Subtotal: Rs. 200.00 [OK]
Checkout Page Subtotal (no state selected): Rs. 185.12 [NOT OK]
Checkout Page Subtotal (with state selected): Rs. 200.00 [OK]What I am trying to do?
No state should be selected by default but calculation on car and checkout page should be the same.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cart and Checkout Subtotal Mismatch’ is closed to new replies.