예제 #1
0
 public static void SetCurrentCartId(Store currentStore, string value)
 {
     if (currentStore.Settings.PreserveCartInSession)
     {
         SetSessionString(WebAppSettings.CookieNameCartId(currentStore.Id), value);
     }
     else
     {
         SetCookieString(WebAppSettings.CookieNameCartId(currentStore.Id), value);
     }
 }
예제 #2
0
        public static string GetCurrentCartID(Store currentStore)
        {
            var result = string.Empty;

            if (currentStore.Settings.PreserveCartInSession)
            {
                result = GetSessionString(WebAppSettings.CookieNameCartId(currentStore.Id));
            }
            else
            {
                result = GetCookieString(WebAppSettings.CookieNameCartId(currentStore.Id));
            }

            return(result);
        }
예제 #3
0
 public static void SetCurrentPaymentPendingCartId(Store currentStore, string value)
 {
     SetCookieString(WebAppSettings.CookieNameCartIdPaymentPending(currentStore.Id), value,
                     DateTime.Now.AddDays(14), false);
 }
예제 #4
0
 public static string GetCurrentPaymentPendingCartId(Store currentStore)
 {
     return(GetCookieString(WebAppSettings.CookieNameCartIdPaymentPending(currentStore.Id)));
 }