Метод | Описание | |
---|---|---|
addPurchasableAction ( |
Adds product into cart | |
emptyCartAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : |
Empty Cart | |
navAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : |
reduced version of cart | |
relatedAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : array | Purchasable related view | |
removeCartLineAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface $cartLine ) : |
Deletes CartLine | |
updateCartAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, boolean $isValid ) : |
Update Cart | |
viewAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : |
Cart view |
public addPurchasableAction ( |
||
$request | Request object | |
$cart | Elcodi\Component\Cart\Entity\Interfaces\CartInterface | Cart |
$id | integer | Purchasable Id |
Результат | Redirect response |
public emptyCartAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : |
||
$cart | Elcodi\Component\Cart\Entity\Interfaces\CartInterface | Cart |
Результат |
public removeCartLineAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface $cartLine ) : |
||
$cart | Elcodi\Component\Cart\Entity\Interfaces\CartInterface | Cart |
$cartLine | Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface | Cart Line |
Результат |
public updateCartAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, boolean $isValid ) : |
||
$form | Symfony\Component\Form\FormInterface | Form |
$cart | Elcodi\Component\Cart\Entity\Interfaces\CartInterface | Cart |
$isValid | boolean | Form is valid |
Результат |
public viewAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : |
||
$formView | Symfony\Component\Form\FormView | Form view |
$cart | Elcodi\Component\Cart\Entity\Interfaces\CartInterface | Cart |
Результат | Response |