PHP Class VariationForm, silvershop-core

Inheritance: extends AddProductForm
Mostrar archivo Open project: burnbright/silverstripe-shop Class Usage Examples

Public Properties

Property Type Description
$include_json

Public Methods

Method Description
__construct ( $controller, $name = "VariationForm" )
addtocart ( $data, $form ) : mixed Adds a given product to the cart. If a hidden field is passed (ValidateVariant) then simply a validation of the user including that product is done and the users cart isn't actually changed.
getBuyable ( $data = null )

Method Details

__construct() public method

public __construct ( $controller, $name = "VariationForm" )

addtocart() public method

Adds a given product to the cart. If a hidden field is passed (ValidateVariant) then simply a validation of the user including that product is done and the users cart isn't actually changed.
public addtocart ( $data, $form ) : mixed
return mixed

getBuyable() public method

public getBuyable ( $data = null )

Property Details

$include_json public_oe static_oe property

public static $include_json