I'm using Nopcommerce 2.2.
When creating a TaxCategory where TaxCategoryID is not 0, tax calculation with FixedRate does not work.
Debugging placing an order:
1. OrderProcessingService.PlaceOrder calls GetShoppingCartSubTotal
2. GetShoppingCartSubTotal calls _taxService.GetProductPrice.
Problem: GetProductPrice has a hardcoded TaxCategoryID = 0.
public virtual decimal GetProductPrice(ProductVariant productVariant, decimal price,
bool includingTax, Customer customer, out decimal taxRate)
{
bool priceIncludesTax = _taxSettings.PricesIncludeTax;
int taxCategoryId = 0; //Is this correct?
return GetProductPrice(productVariant, taxCategoryId, price, includingTax,
customer, priceIncludesTax, out taxRate);
}
/Regards
Rune Einarsen