Class SavedForLater
- Namespace
- Dynamicweb.Ecommerce.Cart
- Assembly
- Dynamicweb.Ecommerce.dll
SavedForLater Data Object
public class SavedForLater : DbObject
- Inheritance
-
SavedForLater
- Inherited Members
Constructors
SavedForLater()
Initializes a new instance of the SavedForLater class.
public SavedForLater()
SavedForLater(IDataReader)
Initializes a new instance of the SavedForLater class.
public SavedForLater(IDataReader dataReader)
Parameters
dataReader
IDataReaderThe data reader.
Properties
DateAdded
Gets or sets the date added.
public DateTime? DateAdded { get; set; }
Property Value
- DateTime?
The date added.
LanguageID
Gets or sets the language ID.
public string LanguageID { get; set; }
Property Value
- string
The language ID.
ProductID
Gets or sets the product ID.
public string ProductID { get; set; }
Property Value
- string
The product ID.
SavedForLaterID
ID of the "Saved for Later"
public int SavedForLaterID { get; set; }
Property Value
- int
The saved for later identifier.
SavedForLaterSessionID
Gets or sets the saved for later session ID.
public string SavedForLaterSessionID { get; set; }
Property Value
- string
The saved for later session ID.
VariantID
Gets or sets the variant ID.
public string VariantID { get; set; }
Property Value
- string
The variant ID.
Methods
AddProductToSavedForLater(string, string, string)
Add product to "Saved For Later"
public static void AddProductToSavedForLater(string productID, string productVariantID, string languageId)
Parameters
productID
stringProduct Id
productVariantID
stringProduct variant Id
languageId
stringLanguage Id
Fill(IDataReader)
Fills the specified data reader.
public override void Fill(IDataReader reader)
Parameters
reader
IDataReaderThe data reader.
FillRow(DataRow)
Fills the row.
protected override void FillRow(DataRow row)
Parameters
row
DataRowThe row.
GetSavedForLaterByID(int)
Get the Saved For Later item by ID.
public static SavedForLater GetSavedForLaterByID(int id)
Parameters
id
intID.
Returns
- SavedForLater
SavedForLater.
GetSavedForLaterBySessionID(string)
Get SavedForLater by session id.
public static IEnumerable<SavedForLater> GetSavedForLaterBySessionID(string sessionID)
Parameters
sessionID
stringThe session identifier.
Returns
- IEnumerable<SavedForLater>
SavedForLaterCollection.
GetSavedForLaterIdFromCookie()
Saves the SaveSavedForLater id to a cookie
public static string GetSavedForLaterIdFromCookie()
Returns
- string
System.String.
RemoveProductFromSavedForLater(string, string, string)
Remove product from "Saved For Later"
public static void RemoveProductFromSavedForLater(string productId, string productVariantId, string languageId)
Parameters
productId
stringThe product identifier.
productVariantId
stringThe product variant identifier.
languageId
stringLanguage Id