Beispiel #1
0
        public ActionResult Billing(Kona.Data.Address address)
        {
            if (ModelState.IsValid)
            {
                //save the address
                this.CurrentCart.BillingAddress = Address.SaveIfNotExists(address);;

                //set the shipping methods
                this.ShippingMethods = _pluginEngine.CalculateShipping(this.SiteData.ShippingPlugin, this.CurrentCart);;

                //default to the first
                this.CurrentCart.SetSelectedShipping(this.ShippingMethods[0]);

                //save the cart
                this.CurrentCart.Save();

                //send them to Finalize
                return(RedirectToAction("Finalize"));
            }
            else
            {
                return(View("Billing"));
            }
        }