Thanks for the answer.
I have figured it out and now it is working pretty well.
Thanks,
Balinder
My Solution:
public class CustomShippingOptionInfoProvider : ShippingOptionInfoProvider
{
/// <summary>
/// Calculates shipping cost for the given shopping cart. Shipping free limit is applied. Shipping taxes are not included. Result is in site main currency.
/// </summary>
/// <param name="cartObj">Shopping cart object</param>
protected override double CalculateShippingInternal(ShoppingCartInfo cartObj)
{
if (cartObj != null && cartObj.ShoppingCartShippingOptionID != 0 && ShippingOptionInfoProvider.GetShippingOptionInfo(cartObj.ShoppingCartShippingOptionID) != null)
{
double defaultvalue = base.CalculateShippingInternal(cartObj);
return GetCalculatedShippingAmount(cartObj, defaultvalue);
}
return base.CalculateShippingInternal(cartObj);
}
}