Fix bug with shipping tax
This commit is contained in:
parent
ebdc410fda
commit
2b4f670b8c
@ -379,6 +379,7 @@ if (!class_exists('WC_Retailcrm_Orders')) :
|
||||
? $shipping['total'] + $shipping['total_tax']
|
||||
: $shipping['total'];
|
||||
|
||||
if (wc_tax_enabled()) {
|
||||
$rate = getShippingRates();
|
||||
|
||||
if (!empty($rate)) {
|
||||
@ -386,6 +387,7 @@ if (!class_exists('WC_Retailcrm_Orders')) :
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$orderData['delivery']['address'] = $this->order_address->build($order)->get_data();
|
||||
$orderItems = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user