\Product_Controller
Displays a product, add to cart form, gets options and variation price for a {@link Product} via AJAX.
- Author: Plato Creative
- Copyright: Copyright (c) 2017, Plato Creative
Synopsis
class Product_Controller
extends Page_Controller
{
- // members
- private static Array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public void init()
- public void Product()
- public void getProductFromUrl()
- public void productform()
- public void ProductAdd()
Hierarchy
Extends
- Page_Controller
Members
private
- $allowed_actions
—
Array
Allowed actions for this controller - $url_handlers
Methods
public
- Product()
- ProductAdd() — Add an item to the current cart ({@link Order}) for a given {@link Product}.
- getProductFromUrl()
- init() — Include some CSS and set the dataRecord to the current Product that is being viewed.
- productform()