Class CartCatch
- Namespace
- Dynamicweb.Ecommerce.Frontend.Cart
- Assembly
- Dynamicweb.Ecommerce.dll
Class CartCatch. This class cannot be inherited.
public sealed class CartCatch
- Inheritance
-
CartCatch
- Inherited Members
Remarks
This is NOT a class that should be declared, it is a holder for functionality
concerning the cart.
Be aware that the subs and functions in this class are all public shared.
Methods
CartIsPresent()
Checks wether the cart exists or not. In session or in cookie.
public static bool CartIsPresent()
Returns
- bool
true
if XXXX,false
otherwise.
CatchCart(int, PageView)
Catches the cart.
public static void CatchCart(int pageId, PageView pageView)
Parameters
ClearCart()
Clears the cart.
[Obsolete("Use 'Services.Carts.ClearCart' instead")]
public static void ClearCart()
GetReferer(int, PageView)
Gets the referer.
public static string GetReferer(int pageId, PageView pageView)
Parameters
Returns
- string
- System.String.
LoadCart()
Loads the cart into session. Checks for cart on AccessUser and cookie.
public static void LoadCart()
SaveCart()
Saves the cart id to a cookie.
public static void SaveCart()