Class CartState

java.lang.Object
org.broadleafcommerce.core.web.order.CartState

@Component("blCartState") public class CartState extends Object
  • Constructor Details

    • CartState

      public CartState()
  • Method Details

    • getCart

      public static Order getCart()
      Gets the current cart based on the current request
      Returns:
      the current customer's cart
    • setCart

      public static void setCart(Order cart)
      Sets the current cart on the current request
      Parameters:
      cart - the new cart to set