Skip to content

Instantly share code, notes, and snippets.

@SirKwest
Created May 11, 2021 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirKwest/22af8b7c9b5d8bce45840bef32c0ae94 to your computer and use it in GitHub Desktop.
Save SirKwest/22af8b7c9b5d8bce45840bef32c0ae94 to your computer and use it in GitHub Desktop.
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