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); }