diff --git a/api-wiaas/server/components/v2/cart/CartModel.php b/api-wiaas/server/components/v2/cart/CartModel.php index cac7c25..69974c7 100644 --- a/api-wiaas/server/components/v2/cart/CartModel.php +++ b/api-wiaas/server/components/v2/cart/CartModel.php @@ -273,7 +273,7 @@ $idCustomerInstance = $database->escapeValue($idCustomerInstance); $quantity = $database->escapeValue($quantity); - if($database->invalidNumber('QUANTITY', $quantity, 1, 100)){ + if($database->invalidNumber('QUANTITY', $quantity, 1, 65000)){ $err_mes = [ 'code' => 'error', 'message' => 'INVALID_QUANTITY' diff --git a/client-wiaas/src/constants/cartConstants.js b/client-wiaas/src/constants/cartConstants.js index 509ca8a..8464e63 100644 --- a/client-wiaas/src/constants/cartConstants.js +++ b/client-wiaas/src/constants/cartConstants.js @@ -65,7 +65,7 @@ export const cartMessages = { QUANTITY_UPDATED: "Quantity has been updated for the package!", INVALID_PACKAGE_FOR_REMOVE: "This package is not available in your cart! In case this error persists contact Co-Market!", PACKAGE_REMOVED_FROM_CART: "The package has been removed from the cart!", - INVALID_QUANTITY: "The quantity can be a number between 1 and 100!", + INVALID_QUANTITY: "The quantity can be a number between 1 and 65000!", CART_EMPTY: "You must have at least one package in the cart!", NO_DELIVERY_ADDRESS: "No delivery address was added! Please fill the necessary info", INCOMPLETE_DELIVERY_ADDRESS: "Incomplete delivery address. Please review!", diff --git a/client-wiaas/src/containers/cart/components/CartItem.jsx b/client-wiaas/src/containers/cart/components/CartItem.jsx index a36633e..77b3286 100644 --- a/client-wiaas/src/containers/cart/components/CartItem.jsx +++ b/client-wiaas/src/containers/cart/components/CartItem.jsx @@ -34,7 +34,7 @@ class CartItem extends Component { } isQuantityValid(quantity) { - return quantity > 0 && quantity <= 100; + return quantity > 0 && quantity <= 65000; } updateQuantity(cartItem, quantity) {