Tax (fixed or by country/state/zip) plugin payment method additional fee error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
1. nopCommerce version: 4.3
2. Expected behavior: Valid Total Tax calculation including Payment additional fee when Payment fee is taxable
3.  Actual behavior: Payment fee tax added to Total Tax multiple times
4. Steps to reproduce the problem: Configuration > Settings > Tax settings > Payment
Payment method additional fee is taxable, Payment method additional fee tax category > something, not 0

The solution: In FixedOrByCountryStateZipTaxProvider.cs file > GetTaxTotal class the //payment method additional fee section should be INSIDE the following if statement brackets:
if (!(_httpContextAccessor.HttpContext.Items.TryGetValue("nop.TaxTotal", out var result) && result is TaxTotalResult taxTotalResult))
            { }

Currently it is after the closing bracket.
3 years ago
Hi Robert,

Thanks a lot for reporting. We'll check it soon - https://github.com/nopSolutions/nopCommerce/issues/4936
3 years ago
Done. Commit.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.