Ejemplo n.º 1
0
        public ActionResult GetCartResult()
        {
            IcbcodeCart shopping_cart = new IcbcodeCart(HttpContext);

            decimal discount = 0;

            var item = new { delivery_price = 0, product_count = shopping_cart.GetCount(), product_amount = (shopping_cart.GetTotal() - discount).ToString("N0"), discount = discount };

            return(Json(item, JsonRequestBehavior.AllowGet));
        }