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); } }
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); }
public static void SetCurrentPaymentPendingCartId(Store currentStore, string value) { SetCookieString(WebAppSettings.CookieNameCartIdPaymentPending(currentStore.Id), value, DateTime.Now.AddDays(14), false); }
public static string GetCurrentPaymentPendingCartId(Store currentStore) { return(GetCookieString(WebAppSettings.CookieNameCartIdPaymentPending(currentStore.Id))); }