SilverCommerce\ShoppingCart\Forms\AddToCartForm
Form dedicated to adding the selected item to cart.
This form is intended to be used
Synopsis
class AddToCartForm
extends Form
{
- // constants
- const DEFAULT_NAME = "AddToCartForm";
- // methods
- public void __construct()
- public string getProductClass()
- public AddToCartForm setProductClass()
- public string getProductID()
- public AddToCartForm setProductID()
- public void doAddItemToCart()
Hierarchy
Extends
- SilverStripe\Forms\Form
Constants
Name | Value |
---|---|
DEFAULT_NAME | "AddToCartForm" |
Methods
public
- __construct()
- doAddItemToCart()
- getProductClass() — Get the classname of the product.
- getProductID() — Get the ID of the product.
- setProductClass() — Set the classname of the product to add
- setProductID() — Set the ID of the product to add