PHP Class VariationForm, silvershop-core

Inheritance: extends AddProductForm
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Méthodes publiques

Свойство Type Description
$include_json

Méthodes publiques

Méthode 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 méthode

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

addtocart() public méthode

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
Résultat mixed

getBuyable() public méthode

public getBuyable ( $data = null )

Property Details

$include_json public_oe static_oe property

public static $include_json