public string ShowFromOrderTotal(object toOrderTotal)
    {
        decimal fromOrderTotal = 0;

        IList <ShippingOrderTotalRate> shippingOrderTotalRateList =
            DataAccessContext.ShippingOrderTotalRateRepository.GetAllByShippingID(ShippingID, "ToOrderTotal");

        for (int i = 0; i < shippingOrderTotalRateList.Count; i++)
        {
            if (shippingOrderTotalRateList[i].ToOrderTotal == ConvertUtilities.ToDecimal(toOrderTotal))
            {
                break;
            }
            else
            {
                fromOrderTotal = shippingOrderTotalRateList[i].ToOrderTotal;
            }
        }

        if (fromOrderTotal == 0)
        {
            return(String.Format("{0:f2}", fromOrderTotal));
        }
        else
        {
            return(String.Format("> {0:f2}", fromOrderTotal));
        }
    }
Beispiel #2
0
    private Coupon SetupCoupon(Coupon coupon)
    {
        _couponID = uxCouponIDText.Text;

        coupon.CouponID           = uxCouponIDText.Text.Trim();
        coupon.DiscountType       = GetDiscountType();
        coupon.DiscountAmount     = ConvertUtilities.ToDecimal(uxDiscountAmountText.Text);
        coupon.Percentage         = ConvertUtilities.ToDouble(uxPercentageText.Text);
        coupon.MinimumQuantity    = ConvertUtilities.ToInt32(uxMinimumQuantityText.Text);
        coupon.PromotionQuantity  = ConvertUtilities.ToInt32(uxPromotionQuantityText.Text);
        coupon.RepeatDiscount     = uxRepeatDiscountCheckBox.Checked;
        coupon.ExpirationType     = GetExpirationType();
        coupon.ExpirationDate     = GetExpirationDate();
        coupon.ExpirationQuantity = ConvertUtilities.ToInt32(uxExpirationQuantityText.Text);
        coupon.CurrentQuantity    = ConvertUtilities.ToInt32(uxCurrentQuantityText.Text);
        coupon.MerchantNotes      = uxMerchantNotesText.Text;
        coupon.ProductFilter      = uxCouponCondition.ProductFilter;
        coupon.ProductIDs         = uxCouponCondition.ProductIDText;
        coupon.CategoryIDs        = uxCouponCondition.CategoryText;
        coupon.CustomerFilter     = uxCouponCondition.CustomerFilter;
        coupon.CustomerUserName   = uxCouponCondition.CustomerNameText;
        coupon.GenerateCouponCustomerByUserNamesOnceOnly(uxCouponCondition.CustomerNameOnceOnlyText);
        coupon.MinimumSubtotal  = ConvertUtilities.ToDecimal(uxMinimumSubtotalText.Text);
        coupon.ProductCostType  = GetProductCostType();
        coupon.FreeShippingType = GetFreeShippingType();
        return(coupon);
    }
    public bool VerifyValidInput(out string errorMessage)
    {
        errorMessage = String.Empty;

        if (CurrentProduct.IsCustomPrice)
        {
            if (ConvertUtilities.ToDecimal(uxEnterAmountText.Text) < CurrentProduct.ProductCustomPrice.MinimumPrice)
            {
                errorMessage = "Error: Price is invalid.";
                return(false);
            }
        }

        if (uxProductOptionGroupDetails.IsValidInput)
        {
            int result = 0;
            if (!int.TryParse(uxQuantityText.Text, out result) ||
                result < 0 || (uxQuantityText.Text == "" && uxQuantityText.Visible))
            {
                errorMessage += "Error: Quantity is invalid.";
            }
            else
            {
                return(true);
            }
        }
        return(false);
    }
Beispiel #4
0
    protected string GetNavName(object price)
    {
        decimal currentPrice = ConvertUtilities.ToDecimal(price);
        string  startPrice   = GetStartPrice(currentPrice);
        string  endPrice     = GetEndPrice(currentPrice);

        decimal maxPrice = DataAccessContext.ProductRepository.GetMaxPriceByCategoryDepartment(
            StoreContext.Culture,
            GetCategoryList(),
            GetDepartmentListWithLeaf(),
            BoolFilter.ShowTrue,
            StoreContext.CurrentStore.StoreID);

        string startRange = StoreContext.Currency.FormatPrice(startPrice);
        string endRange   = String.Empty;

        if (currentPrice >= maxPrice || currentPrice >= (PriceStep * MaxLevel))
        {
            endRange = GetLanguageText("andabove");
        }
        else
        {
            endRange = " - " + StoreContext.Currency.FormatPrice(endPrice);
        }

        return(startRange + endRange);
    }
Beispiel #5
0
    protected string GetDisplayText(object groupName)
    {
        if (groupName.ToString().ToLower() == "price")
        {
            if (String.IsNullOrEmpty(MaxPrice))
            {
                return(StoreContext.Currency.FormatPrice(ConvertUtilities.ToDecimal(MinPrice)) + GetLanguageText("andabove"));
            }

            return(StoreContext.Currency.FormatPrice(ConvertUtilities.ToDecimal(MinPrice)) + " - " + StoreContext.Currency.FormatPrice(ConvertUtilities.ToDecimal(MaxPrice)));
        }
        else if (groupName.ToString() == "[$Category]")
        {
            Category category = DataAccessContext.CategoryRepository.GetOne(StoreContext.Culture, Request.QueryString["cat"]);
            return(category.Name);
        }
        else if (groupName.ToString() == "[$Department]")
        {
            Department department = DataAccessContext.DepartmentRepository.GetOne(StoreContext.Culture, Request.QueryString["dep"]);
            return(department.Name);
        }
        else if (groupName.ToString() == "[$Manufacturer]")
        {
            Manufacturer manufacturer = DataAccessContext.ManufacturerRepository.GetOne(StoreContext.Culture, Request.QueryString["manu"]);
            return(manufacturer.Name);
        }
        else
        {
            SpecificationItem      specItem  = DataAccessContext.SpecificationItemRepository.GetOneByName(StoreContext.Culture, groupName.ToString());
            SpecificationItemValue specValue = DataAccessContext.SpecificationItemValueRepository.GetOneBySpecItemIDAndValue(StoreContext.Culture, specItem.SpecificationItemID, Request.QueryString[groupName.ToString()]);
            return(specValue.DisplayValue);
        }
    }
Beispiel #6
0
    private Product SetUpProduct(Product product)
    {
        product = uxProductInfo.Setup(product);
        product = uxDepartmentInfo.Setup(product);
        product = uxProductSeo.Setup(product, uxStoreList.CurrentSelected);
        product = uxRecurring.Setup(product);
        product = uxProductAttributes.Setup(product, uxStoreList.CurrentSelected);
        product = uxProductKit.Setup(product);

        product.ShippingCost      = ConvertUtilities.ToDecimal("0");
        product.IsGiftCertificate = uxGiftCertificate.IsGiftCertificate;
        if (product.IsGiftCertificate)
        {
            product = uxGiftCertificate.Update(product);
        }
        product.IsFixedPrice = uxProductAttributes.IsFixPrice(
            uxGiftCertificate.IsFixedPrice, uxGiftCertificate.IsGiftCertificate, uxRecurring.IsRecurring, uxProductAttributes.IsCallForPrice);
        product.ImageSecondary = uxProductImageList.SecondaryImage();

        product.ProductStocks.Clear();
        product.ProductOptionGroups.Clear();
        product.ProductShippingCosts.Clear();

        uxProductAttributes.AddOptionGroup(product);
        uxProductAttributes.CreateStockOption(product);
        uxProductAttributes.UpdateProductShippingCost(product);
        uxProductAttributes.SetProductSpecifications(product);
        return(product);
    }
Beispiel #7
0
    private Product SetUpProduct(Product product)
    {
        product = uxProductInfo.Setup(product);
        product = uxRecurring.Setup(product);
        product = uxProductAttributes.Setup(product, "0");
        product = uxProductKit.Setup(product);

        product.ShippingCost      = ConvertUtilities.ToDecimal("0");
        product.IsGiftCertificate = uxGiftCertificate.IsGiftCertificate;
        product.IsFixedPrice      = uxProductAttributes.IsFixPrice(
            uxGiftCertificate.IsFixedPrice, uxGiftCertificate.IsGiftCertificate, uxRecurring.IsRecurring, uxProductAttributes.IsCallForPrice);
        product.ImageSecondary = uxProductImageList.SecondaryImage();
        product = uxProductImageList.Update(product);
        //Clear anything before change it.
        //product.ProductImages.Clear();
        product.ProductStocks.Clear();
        product.ProductOptionGroups.Clear();
        product.ProductShippingCosts.Clear();
        product.SetUseDefaultValueMetaKeyword("0", true);
        product.SetUseDefaultValueMetaDescription("0", true);

        uxProductAttributes.AddOptionGroup(product);
        uxProductAttributes.CreateStockOption(product);
        uxProductAttributes.UpdateProductShippingCost(product);
        uxProductAttributes.SetProductSpecifications(product);
        ProductImageData.PopulateProductImages(product);
        ProductImageData.Clear();


        return(product);
    }
Beispiel #8
0
    protected bool IsRetailPriceEnabled(object isFixedPrice, object isCustomPrice, decimal retailPrice, object isCallForPrice)
    {
        if (!IsAuthorizedToViewPrice())
        {
            return(false);
        }

        if (ConvertUtilities.ToBoolean(isCallForPrice))
        {
            return(false);
        }

        if (ConvertUtilities.ToBoolean(isCustomPrice))
        {
            return(false);
        }

        if (CatalogUtilities.IsRetailMode &&
            ConvertUtilities.ToBoolean(isFixedPrice) &&
            ConvertUtilities.ToDecimal(retailPrice) > 0)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
Beispiel #9
0
    protected void uxGrid_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            string  affiliateOrderID = ((Label)uxGrid.Rows[e.RowIndex].FindControl("uxAffiliateOrderIDLabel")).Text;
            decimal commission       = ConvertUtilities.ToDecimal(((TextBox)uxGrid.Rows[e.RowIndex].FindControl("uxCommissionText")).Text);
            bool    pending          = ConvertUtilities.ToBoolean(
                ((DropDownList)uxGrid.Rows[e.RowIndex].FindControl("uxPendingDrop")).SelectedValue);

            if (!String.IsNullOrEmpty(affiliateOrderID))
            {
                AffiliateOrder affiliateOrder = DataAccessContextDeluxe.AffiliateOrderRepository.GetOne(affiliateOrderID);
                affiliateOrder.Commission         = commission;
                affiliateOrder.AffiliatePaymentID = "0";
                affiliateOrder.Pending            = pending;
                DataAccessContextDeluxe.AffiliateOrderRepository.Save(affiliateOrder);
            }

            // End editing
            uxGrid.EditIndex = -1;
            RefreshGrid();

            uxMessage.DisplayMessage(Resources.AffiliateCommissionMessages.UpdateSuccess);
        }
        catch (Exception)
        {
            string message = Resources.AffiliateCommissionMessages.UpdateError;
            throw new ApplicationException(message);
        }
        finally
        {
            // Avoid calling Update() automatically by GridView
            e.Cancel = true;
        }
    }
Beispiel #10
0
    public bool ValidateAndSetUp()
    {
        if (!ValidateCoupon())
        {
            DisplayCouponError();
            return(false);
        }

        if (!ValidateGiftCertificate())
        {
            return(false);
        }

        if (uxRewardPointDiv.Visible)
        {
            if (!VerifyRewardPoint(false))
            {
                return(false);
            }
        }

        StoreContext.CheckoutDetails.SetCouponID(uxCouponIDText.Text);
        StoreContext.CheckoutDetails.SetGiftCertificate(uxGiftCertificateCodeText.Text);
        StoreContext.CheckoutDetails.RedeemPrice = GetPriceFromPoint(ConvertUtilities.ToDecimal(uxRewardPointText.Text));
        StoreContext.CheckoutDetails.RedeemPoint = ConvertUtilities.ToInt32(uxRewardPointText.Text);
        // StoreContext.CheckoutDetails.SetCustomerComments( uxCustomerComments.Text );
        StoreContext.CheckoutDetails.StoreID = StoreContext.CurrentStore.StoreID;

        return(true);
    }
Beispiel #11
0
    protected bool IsRetailPriceEnabled(object isFixedPrice, object isCustomPrice, decimal retailPrice, object isCallForPrice)
    {
        if (DataAccessContext.Configurations.GetBoolValue("PriceRequireLogin") && !Page.User.Identity.IsAuthenticated)
        {
            return(false);
        }

        if (ConvertUtilities.ToBoolean(isCallForPrice))
        {
            return(false);
        }

        if (ConvertUtilities.ToBoolean(isCustomPrice))
        {
            return(false);
        }

        if (CatalogUtilities.IsRetailMode &&
            ConvertUtilities.ToBoolean(isFixedPrice) &&
            ConvertUtilities.ToDecimal(retailPrice) > 0
            )
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
Beispiel #12
0
    private IList <string> CreateDataSource()
    {
        decimal maxPrice = DataAccessContext.ProductRepository.GetMaxPriceByCategoryDepartment(
            StoreContext.Culture,
            GetCategoryList(),
            GetDepartmentListWithLeaf(),
            BoolFilter.ShowTrue,
            StoreContext.CurrentStore.StoreID);

        IList <string> list  = new List <string>();
        int            i     = PriceStep;
        int            level = 1;

        while ((i < maxPrice || i - maxPrice < PriceStep) && level <= MaxLevel)
        {
            if (IsVisible(ConvertUtilities.ToDecimal(i)))
            {
                list.Add(i.ToString());
            }
            i = i + PriceStep;
            level++;
        }

        if (list.Count == 0)
        {
            uxPriceTitle.Visible = false;
        }

        return(list);
    }
Beispiel #13
0
    private decimal GetCountItem(decimal price)
    {
        decimal currentPrice = ConvertUtilities.ToDecimal(price);
        string  startPrice   = GetStartPrice(currentPrice);
        string  endPrice     = GetEndPrice(currentPrice);

        decimal maxPrice = DataAccessContext.ProductRepository.GetMaxPriceByCategoryDepartment(
            StoreContext.Culture,
            GetCategoryList(),
            GetDepartmentListWithLeaf(),
            BoolFilter.ShowTrue,
            StoreContext.CurrentStore.StoreID);

        if (currentPrice >= maxPrice || currentPrice >= (PriceStep * MaxLevel))
        {
            endPrice = String.Empty;
        }

        IList <string> specKeyList = GetAllSpecKey();

        int itemCount = DataAccessContext.ProductRepository.GetFacetCount(
            StoreContext.Culture,
            GetCategoryList(),
            GetDepartmentListWithLeaf(),
            GetManufacturerID(),
            startPrice,
            endPrice,
            GetSpecItemValueList(specKeyList),
            "",
            BoolFilter.ShowTrue,
            StoreContext.CurrentStore.StoreID);

        return(itemCount);
    }
Beispiel #14
0
    private void SaveListing(string eBayItemID, EBayTemplate template)
    {
        EBayAccess acc        = new EBayAccess();
        EBayItem   item       = GetEBayItemDetailByID(eBayItemID, template);
        ApiContext apiContext = acc.GetApiContext(template.EBayListSite);
        EBayList   eBayList   = new EBayList();

        if (item.Type.Equals("Chinese"))
        {
            eBayList.BuyItNowPrice = ConvertUtilities.ToDecimal(item.Bidding_BuyItNowPrice);
        }
        else
        {
            eBayList.BuyItNowPrice = ConvertUtilities.ToDecimal(item.BuyItNowPrice);
        }

        eBayList.BidPrice = (decimal)item.Bidding_CurrentPrice;

        eBayList.ItemName   = item.Title;
        eBayList.ItemNumber = item.ID;
        eBayList.LastStatus = (EBayList.EBayListStatus)Enum.Parse(typeof(EBayList.EBayListStatus), item.ListingStatus, true);
        eBayList.ListDate   = item.StartTime;
        eBayList.ListType   = (EBayList.EBayListType)Enum.Parse(typeof(EBayList.EBayListType), item.Type, true);
        eBayList.QtyLeft    = item.QuantityLeft;
        eBayList.LastUpdate = DateTime.Now;
        eBayList.ViewUrl    = item.ViewUrl;
        eBayList.Currency   = item.Currency;

        eBayList = DataAccessContextDeluxe.EBayListRepository.Save(eBayList);
    }
Beispiel #15
0
    private void UpdateShippingMethod()
    {
        ShippingOption shippingMethod = DataAccessContext.ShippingOptionRepository.GetOne(StoreContext.Culture, ShippingID);

        shippingMethod.IsEnabled   = ConvertUtilities.ToBoolean(uxIsEnabledDrop.SelectedValue);
        shippingMethod.HandlingFee = ConvertUtilities.ToDecimal(uxHandlingFeeText.Text);
        DataAccessContext.ShippingOptionRepository.Save(shippingMethod);
    }
 public CartItemGiftDetails GetCartItemGiftDetails()
 {
     return(new CartItemGiftDetails(
                uxRecipientText.Text,
                uxPersonalNoteText.Text,
                IsNeedPhysicalGift(),
                ConvertUtilities.ToDecimal(uxGiftAmountText.Text)));
 }
Beispiel #17
0
 private AffiliatePayment SetUpAffiliatePayment(AffiliatePayment affiliatePayment)
 {
     affiliatePayment.AffiliateCode = AffiliateCode;
     affiliatePayment.Amount        = ConvertUtilities.ToDecimal(uxAmountText.Text.Trim());
     affiliatePayment.PaidDate      = uxCalendarPopup.SelectedDate;
     affiliatePayment.PaymentNote   = uxNoteText.Text;
     return(affiliatePayment);
 }
Beispiel #18
0
 protected void uxVeryfyRewardPointButton_Click(object sender, EventArgs e)
 {
     if (VerifyRewardPoint(true))
     {
         StoreContext.CheckoutDetails.StoreID     = StoreContext.CurrentStore.StoreID;
         StoreContext.CheckoutDetails.RedeemPrice = GetPriceFromPoint(ConvertUtilities.ToDecimal(uxRewardPointText.Text));
         StoreContext.CheckoutDetails.RedeemPoint = ConvertUtilities.ToInt32(uxRewardPointText.Text);
     }
 }
Beispiel #19
0
    private string GetDisplayText()
    {
        if (String.IsNullOrEmpty(MaxPrice))
        {
            return(StoreContext.Currency.FormatPrice(ConvertUtilities.ToDecimal(MinPrice)) + GetLanguageText("andabove"));
        }

        return(StoreContext.Currency.FormatPrice(ConvertUtilities.ToDecimal(MinPrice)) + " - " + StoreContext.Currency.FormatPrice(ConvertUtilities.ToDecimal(MaxPrice)));
    }
Beispiel #20
0
    private string GetShippingCost(bool useProductShippingCost, string productID, string shippingID, object price)
    {
        string shippingCost = _export.GetShippingCost(useProductShippingCost, productID, shippingID, price);

        if (ConvertUtilities.ToDecimal(shippingCost) == 0)
        {
            shippingCost = "FREE";
        }
        return(shippingCost);
    }
Beispiel #21
0
    protected decimal DisplayDiscount(object discount)
    {
        decimal newDiscount = ConvertUtilities.ToDecimal(discount);

        if (newDiscount > 0)
        {
            newDiscount = newDiscount * -1;
        }
        return(newDiscount);
    }
Beispiel #22
0
    private void DisplayRewardPointDetails()
    {
        uxRewardPointMessageTR.Visible = false;
        decimal reward = GetPriceFromPoint(ConvertUtilities.ToDecimal(uxRewardPointText.Text));

        uxRewardPointLabel.Text = "You are using " + uxRewardPointText.Text + " point ( " + StoreContext.Currency.FormatPrice(reward) + " ) ";

        StoreContext.CheckoutDetails.RedeemPrice = reward;
        StoreContext.CheckoutDetails.RedeemPoint = ConvertUtilities.ToInt32(uxRewardPointText.Text);
    }
Beispiel #23
0
    private void Update()
    {
        Affiliate affiliate = DataAccessContextDeluxe.AffiliateRepository.GetOne(AffiliateCode);

        affiliate = SetUpAffiliate(affiliate);
        affiliate.CommissionRate = ConvertUtilities.ToDecimal(uxCommissionRateLabel.Text);
        DataAccessContextDeluxe.AffiliateRepository.Save(affiliate);

        ErrorMessage = "[$UpdateComplete]";
    }
 private OrderItem LoadOrderItemDataFromGui(OrderItem orderItem)
 {
     orderItem.OrderID       = CurrentOrderID;
     orderItem.Quantity      = ConvertUtilities.ToInt32(uxQuantityText.Text);
     orderItem.Name          = uxNameText.Text;
     orderItem.Sku           = uxSkuText.Text;
     orderItem.UnitPrice     = ConvertUtilities.ToDecimal(uxUnitPriceText.Text);
     orderItem.DownloadCount = ConvertUtilities.ToInt32(uxDownloadCountText.Text);
     return(orderItem);
 }
Beispiel #25
0
    public Product Update(Product product)
    {
        GiftCertificateProduct giftProduct = (GiftCertificateProduct)product;

        giftProduct.GiftAmount      = ConvertUtilities.ToDecimal(uxGiftAmountText.Text);
        giftProduct.ExpireType      = GetExpireType();
        giftProduct.FixedExpireDate = GetGiftFixedExpirationDate();
        giftProduct.NumberOfDays    = ConvertUtilities.ToInt32(uxNumberOfDayText.Text);
        giftProduct.IsElectronic    = uxIsElectronicCheck.Checked;
        return(giftProduct);
    }
Beispiel #26
0
 private Affiliate SetUpAffiliate(Affiliate affiliate)
 {
     affiliate.RegisterDate   = uxCalendarPopup.SelectedDate;
     affiliate.UserName       = uxUserName.Text;
     affiliate.ContactAddress = new Address(uxFirstName.Text, uxLastName.Text, uxCompany.Text, uxAddress1.Text, uxAddress2.Text,
                                            uxCity.Text, uxStateList.CurrentSelected, uxZip.Text, uxCountryList.CurrentSelected, uxPhone.Text, uxFax.Text);
     affiliate.Email          = uxEmail.Text;
     affiliate.Website        = uxWebSite.Text;
     affiliate.CommissionRate = ConvertUtilities.ToDecimal(uxCommissionText.Text);
     affiliate.IsEnabled      = uxIsEnabledCheck.Checked;
     return(affiliate);
 }
Beispiel #27
0
    private void ExtractListItemValue(
        string listItemValue,
        out string shippingID,
        out decimal shippingCost,
        out decimal handlingFee)
    {
        string[] selectItem = listItemValue.Split('-');

        shippingID   = selectItem[0];
        shippingCost = ConvertUtilities.ToDecimal(selectItem[1]);
        handlingFee  = ConvertUtilities.ToDecimal(selectItem[2]);
    }
Beispiel #28
0
    private ShippingWeightRate GetDetailsFromGrid(GridViewRow row, ShippingWeightRate shippingWeightRate)
    {
        shippingWeightRate.ShippingID = ShippingID;
        string toWeightText = ((TextBox)row.FindControl("uxToWeightText")).Text;

        shippingWeightRate.ToWeight = ConvertUtilities.ToDouble(toWeightText);

        string shippingWeightRateText = ((TextBox)row.FindControl("uxShippingWeightRate")).Text;

        shippingWeightRate.WeightRate = ConvertUtilities.ToDecimal(shippingWeightRateText);

        return(shippingWeightRate);
    }
    private ShippingOrderTotalRate GetDetailsFromGrid(GridViewRow row, ShippingOrderTotalRate shippingOrderTotalRate)
    {
        shippingOrderTotalRate.ShippingID = ShippingID;
        string toOrderTotalText = ((TextBox)row.FindControl("uxToOrderTotalText")).Text;

        shippingOrderTotalRate.ToOrderTotal = ConvertUtilities.ToDecimal(toOrderTotalText);

        string shippingOrderTotalRateText = ((TextBox)row.FindControl("uxShippingOrderTotalRate")).Text;

        shippingOrderTotalRate.OrderTotalRate = ConvertUtilities.ToDecimal(shippingOrderTotalRateText);

        return(shippingOrderTotalRate);
    }
 private ShippingOption SetUpShippingOption(ShippingOption shippingOption)
 {
     shippingOption.ShippingName          = uxShippingNameText.Text;
     shippingOption.FreeShipping          = ConvertUtilities.ToBoolean(uxFreeShippingDrop.SelectedValue);
     shippingOption.FreeShippingValue     = ConvertUtilities.ToDecimal(uxFreeShippingValueText.Text);
     shippingOption.FixedShippingCost     = ConvertUtilities.ToDecimal(uxFixCostText.Text);
     shippingOption.ShippingCostFirstItem = ConvertUtilities.ToDecimal(uxFirstItemText.Text);
     shippingOption.ShippingCostNextItem  = ConvertUtilities.ToDecimal(uxNextItemText.Text);
     shippingOption.IsEnabled             = ConvertUtilities.ToBoolean(uxIsEnabledDrop.SelectedValue);
     shippingOption.HandlingFee           = ConvertUtilities.ToDecimal(uxHandlingFeeText.Text);
     shippingOption.AllowedType           = GetAllowedType();
     return(shippingOption);
 }