Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/app/addons/vendor_categories_fee/func.php b/app/addons/vendor_categories_fee/func.php
index 3e521acf1e..a1e05bb0a7 100644
--- a/app/addons/vendor_categories_fee/func.php
+++ b/app/addons/vendor_categories_fee/func.php
@@ -392,9 +392,8 @@ function fn_vendor_categories_fee_vendor_plans_calculate_commission_for_payout_p
}
$total = $order_info['total'] - $order_info['payment_surcharge'];
- $tax_amount_included_to_shipping = 0;
+ $tax_amount_included_to_shipping = fn_vendor_plans_get_tax_amount_included_to_shipping($order_info['taxes']);
if ($exclude_taxes_from_calculation) {
- $tax_amount_included_to_shipping = fn_vendor_plans_get_tax_amount_included_to_shipping($order_info['taxes']);
$order_tax_amount = array_sum(array_column($order_info['taxes'], 'tax_subtotal'));
$total -= $order_tax_amount;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment