Merge pull request #17835 from woocommerce/fix/17815
Checkout should store fee tax lines
This commit is contained in:
commit
34ec7a013f
|
@ -469,7 +469,7 @@ class WC_Checkout {
|
|||
* @param WC_Cart $cart
|
||||
*/
|
||||
public function create_order_tax_lines( &$order, $cart ) {
|
||||
foreach ( array_keys( $cart->get_cart_contents_taxes() + $cart->get_shipping_taxes() ) as $tax_rate_id ) {
|
||||
foreach ( array_keys( $cart->get_cart_contents_taxes() + $cart->get_shipping_taxes() + $cart->get_fee_taxes() ) as $tax_rate_id ) {
|
||||
if ( $tax_rate_id && apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' ) !== $tax_rate_id ) {
|
||||
$item = new WC_Order_Item_Tax();
|
||||
$item->set_props( array(
|
||||
|
|
Loading…
Reference in New Issue