Exemple #1
0
        private Order CreateOrderFromNewCart()
        {
            var cartInfo = new ShoppingCartInfo
            {
                ShoppingCartSiteID          = SiteInfo.SiteID,
                ShoppingCartCurrencyID      = Factory.MainCurrency.CurrencyID,
                ShoppingCartPaymentOptionID = Factory.PaymentMethodDefault.PaymentOptionID,
                ShoppingCartCustomerID      = Factory.CustomerAnonymous.CustomerID,
                ShoppingCartBillingAddress  = Factory.CustomerAddressUSA
            };

            cartInfo.Insert();

            var cart = new ShoppingCart(cartInfo, mEcommerceActivitiesLogger, null);

            return(mService.CreateOrder(cart));
        }