You can as well create an appconfig called CustomerLevelIDforWholesale which holds the value of your wholesale customer level ID. Open up your shoppingcart.aspx.cs file:
From this lines: 625-628
Code:
if (!cart.MeetsMinimumOrderAmount(MinOrderAmount))
{
pnlMeetsMinimumOrderAmountError.Visible = true;
MeetsMinimumOrderAmountError.Text = String.Format(AppLogic.GetString("shoppingcart.aspx.4", SkinID,ThisCustomer.LocaleSetting), ThisCustomer.CurrencyString(MinOrderAmount));
}
change it to:
Code:
if ((!cart.MeetsMinimumOrderAmount(MinOrderAmount)) && (ThisCustomer.CustomerLevelID == AppLogic.AppConfigNativeInt("CustomerLevelIDforWholesale"))))
{
pnlMeetsMinimumOrderAmountError.Visible = true;
MeetsMinimumOrderAmountError.Text = String.Format(AppLogic.GetString("shoppingcart.aspx.4", SkinID,ThisCustomer.LocaleSetting), ThisCustomer.CurrencyString(MinOrderAmount));
}
And, from these lines: 1143-1147
Code:
bool validated = true;
if (!cart.MeetsMinimumOrderAmount(AppLogic.AppConfigUSDecimal("CartMinOrderAmount"))
{
validated = false;
}
change it to:
Code:
bool validated = true;
if if (!cart.MeetsMinimumOrderAmount(AppLogic.AppConfigUSDecimal("CartMinOrderAmount")) && (ThisCustomer.CustomerLevelID == AppLogic.AppConfigNativeInt("CustomerLevelIDforWholesale")))
{
validated = false;
}
If you're allowing Paypal and GoogleCheckout, you should also add the CustomerLevelIDforWholesale condition. Don't forget to make a backup first before anything else.