\Cart
Extends {@link Page_Controller} adding some functions to retrieve the current cart, and link to the cart.
- Author: Frank Mullenger <frankmullenger@gmail.com>
- Copyright: Copyright (c) 2011, Frank Mullenger
Synopsis
class Cart
extends Extension
{
- // methods
- public Order Cart()
- public String CartLink()
- public static Order get_current_order()
- public void onBeforeInit()
Hierarchy
Extends
- Extension
Methods
public
- Cart() — Retrieve the current cart for display in the template.
- CartLink() — Convenience method to return links to cart related page.
- get_current_order() — Get the current order from the session, if order does not exist create a new one.
- onBeforeInit() — Updates timestamp LastActive on the order, called on every page request.