예제 #1
0
        private void CreateOrderDiscounts()
        {
            OrderDiscount = Factory.NewOrderDiscount(10);
            OrderDiscount.DiscountUsesCoupons = true;
            OrderDiscount.Insert();

            new CouponCodeInfo
            {
                CouponCodeDiscountID = OrderDiscount.DiscountID,
                CouponCodeCode       = ORDER_COUPON_CODE,
            }.Insert();
        }
예제 #2
0
 private void CreateShippingDiscounts()
 {
     ShippingDiscount = Factory.NewShippingDiscount(100, false, 50);
     ShippingDiscount.Insert();
 }