Beispiel #1
0
        /// <summary>
        /// Generates the Order cookie name
        /// </summary>
        /// <param name="isOrderComplete">Whether the order is complete or not</param>
        public static string GetOrderCookieName(bool isOrderComplete = false)
        {
            var    uwebshopConfiguration = UwebshopConfiguration.Current;
            string cookiePrefix          = (isOrderComplete ? "CompletedOrderId" : "OrderId");

            return(cookiePrefix + (uwebshopConfiguration == null || uwebshopConfiguration.ShareBasketBetweenStores ? string.Empty : StoreHelper.GetCurrentStore().UrlName));
        }
        /// <summary>
        ///     Convert the property to a multistore property usting the current store from the order or website
        /// </summary>
        /// <param name="propertyAlias"></param>
        /// <returns></returns>
        public static string MultiStorePropertyAlias(string propertyAlias)
        {
            var storeAlias = StoreHelper.GetCurrentStore().Alias;

            return(!string.IsNullOrEmpty(storeAlias) ? StoreHelper.CreateMultiStorePropertyAlias(propertyAlias, storeAlias) : propertyAlias);
        }