Ejemplo n.º 1
0
        public bool CheckOnLineItem(DefaultVariation variation, ILineItem li)
        {
            // need to set it to something for the serialized carts, so the property becomes created
            if (variation.RequireSpecialShipping)
            {
                li.Properties["LineItemSpecialShipping"] = true;
            }
            else
            {
                li.Properties["LineItemSpecialShipping"] = false;
            }

            return(variation.RequireSpecialShipping);
        }
        public string GetClosestWareHouse(DefaultVariation sku)
        {
            string str = String.Empty;

            var m = _currentMarket.GetCurrentMarket().MarketId.Value;
            var w = warehouseRepository.Service.List();

            foreach (var item in w)
            {
                if (item.Code == m)
                {
                    str = item.Name;
                    break;
                }
                else
                {
                    str = "...nothing close";
                }
            }

            return(str);
        }