Created
May 11, 2021 11:21
-
-
Save SirKwest/22af8b7c9b5d8bce45840bef32c0ae94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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