Sunnysideup\Ecommerce\Control\ShoppingCartController::additem
Adds item to cart via controller action; one by default.
Signature
public function additem(HTTPRequest
$request )
Parameters
Returns
- mixed
- - if the request is AJAX, it returns JSON - CartResponse::ReturnCartData();
If it is not AJAX it redirects back to requesting page