public ActionResult RecalculateCart(string arrayOfProducts, string arrayOfProductNames, string arrayOfProductQuantities, string arrayOfRenewalPeriods, bool displayProductName, bool displayProductPeriod, bool displayProductNumberOfItems, bool displayProductPrice, bool displayProductDiscount, bool displayProductTotalPrice, bool displayOrderSubAmount, bool displayOrderTaxes, bool displayOrderTotal, string chosenCountry, int globalCounter, string campaignCode, bool pricesIncludingVAT, string orderCustomAttributes, string orderAddress)
{
ShoppingCart result;
string currencyFromCookie = null;
if (System.Web.HttpContext.Current.Session["OrderCurrencyCode"] != null && !string.IsNullOrEmpty((string)System.Web.HttpContext.Current.Session["OrderCurrencyCode"]))
{
currencyFromCookie = (string)System.Web.HttpContext.Current.Session["OrderCurrencyCode"];
}
var service = GeneralHelper.GetPublicOrderService(this.HttpContext.ApplicationInstance.Context);
bool resellerTos = Session != null && Session["resellerAccountData"] != null;
result = CartHelper.RecalculateCart(
this,
arrayOfProducts,
arrayOfProductNames,
arrayOfProductQuantities,
arrayOfRenewalPeriods,
displayProductName,
displayProductPeriod,
displayProductNumberOfItems,
displayProductPrice,
displayProductDiscount,
displayProductTotalPrice,
displayOrderSubAmount,
displayOrderTaxes,
displayOrderTotal,
chosenCountry,
globalCounter,
service,
Guid.Empty,
currencyFromCookie,
ResellerHelper.GetResellerId(),
null,
campaignCode,
pricesIncludingVAT,
orderCustomAttributes,
orderAddress,
null,
resellerTos);
return Json(result);
}