i got new isue , when i add new product to any category , if i dont choice any tax category for product , i get error when site load and after even i update product details with any tax category , web site still down and show error .
Line 235: var activeTaxProvider = LoadActiveTaxProvider();
Line 236: if (activeTaxProvider == null)
Line 237: throw new NopException("Active tax provider cannot be loaded. Please select at least one in admin area.");
Line 238:
Line 239: //get tax rate
I modified the source as follows.
//active tax provider
ITaxProvider activeTaxProvider;
try
{
activeTaxProvider = LoadActiveTaxProvider();
}
catch
{
return decimal.Zero;
//throw new NopException("Active tax provider cannot be loaded. Please select at least one in admin area.");
}
if (activeTaxProvider == null)
return decimal.Zero;
//throw new NopException("Active tax provider cannot be loaded. Please select at least one in admin area.");
//get tax rate
CalculateTaxResult calculateTaxResult;
try
{
calculateTaxResult = activeTaxProvider.GetTaxRate(calculateTaxRequest);
}
catch(NopException)
{
return decimal.Zero;
}