SilverShop\Forms\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.
Signature
public function addtocart(array
$data,
Form
$form )
Parameters
$data
— array$form
— object
Returns
- mixed