Sunnysideup\Ecommerce\Control\ShoppingCartController::setquantityitem
Sets the exact passed quantity.
Note: If no ?quantity=x is specified in URL, then quantity will be set to 1.
Signature
public function setquantityitem(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