Fix bug with shipping tax
This commit is contained in:
parent
ebdc410fda
commit
2b4f670b8c
1 changed files with 5 additions and 3 deletions
|
@ -379,10 +379,12 @@ if (!class_exists('WC_Retailcrm_Orders')) :
|
||||||
? $shipping['total'] + $shipping['total_tax']
|
? $shipping['total'] + $shipping['total_tax']
|
||||||
: $shipping['total'];
|
: $shipping['total'];
|
||||||
|
|
||||||
$rate = getShippingRates();
|
if (wc_tax_enabled()) {
|
||||||
|
$rate = getShippingRates();
|
||||||
|
|
||||||
if (!empty($rate)) {
|
if (!empty($rate)) {
|
||||||
$orderData['delivery']['vatRate'] = $rate;
|
$orderData['delivery']['vatRate'] = $rate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue