PHP 클래스 VariationForm, silvershop-core

상속: extends AddProductForm
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$include_json

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

addtocart() 공개 메소드

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
리턴 mixed

getBuyable() 공개 메소드

public getBuyable ( $data = null )

프로퍼티 상세

$include_json 공개적으로 정적으로 프로퍼티

public static $include_json