\ShoppingCart
Extends {@link Page_Controller} adding some functions to retrieve the current cart, and link to the cart.
- Author: Plato Creative
- Copyright: Copyright (c) 2017, Plato Creative
Synopsis
class ShoppingCart
extends DataExtension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public void onBeforeInit()
- public void onAfterInit()
- public void RefreshCartOverview()
- public Order Cart()
- public void TotalCartItems()
- public String CartLink()
- public static Order get_current_order()
- public static void getCustomer()
- public void AccountPage()
- public void RedirectCartOverview()
Hierarchy
Extends
- DataExtension
Members
private
- $allowed_actions
Methods
public
- AccountPage()
- Cart() — Retrieve the current cart for display in the template.
- CartLink() — Convenience method to return links to cart related page.
- RedirectCartOverview()
- RefreshCartOverview()
- TotalCartItems()
- getCustomer()
- get_current_order() — Get the current order from the session, if order does not exist create a new one.
- onAfterInit()
- onBeforeInit() — Updates timestamp LastActive on the order, called on every page request.