PHP Класс VariationForm, silvershop-core

Наследование: extends AddProductForm
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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