diff --git a/src/controllers/CartController.php b/src/controllers/CartController.php index 74531f7..3db3ce0 100755 --- a/src/controllers/CartController.php +++ b/src/controllers/CartController.php @@ -107,6 +107,7 @@ private function _returnCart() if ($request->getAcceptsJson()) { return $this->asJson([ 'error' => $error, + 'errors' => $this->_cart->getErrors(), 'success' => !$this->_cart->hasErrors(), $this->_cartVariable => $this->cartArray($this->_cart) ]); @@ -130,6 +131,7 @@ private function _returnCart() if ($request->getAcceptsJson()) { return $this->asJson([ 'error' => $error, + 'errors' => $this->_cart->getErrors(), 'success' => !$this->_cart->hasErrors(), $this->_cartVariable => $this->cartArray($this->_cart) ]);