Merge branch 'incrase-max-item-quantity' into 'development'

Incrase max item quantity

See merge request saburly/wiaas/wiaas-legacy!9
This commit was merged in pull request #9.
This commit is contained in:
Bilal Catic
2018-10-01 09:50:53 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -273,7 +273,7 @@
$idCustomerInstance = $database->escapeValue($idCustomerInstance); $idCustomerInstance = $database->escapeValue($idCustomerInstance);
$quantity = $database->escapeValue($quantity); $quantity = $database->escapeValue($quantity);
if($database->invalidNumber('QUANTITY', $quantity, 1, 100)){ if($database->invalidNumber('QUANTITY', $quantity, 1, 65000)){
$err_mes = [ $err_mes = [
'code' => 'error', 'code' => 'error',
'message' => 'INVALID_QUANTITY' 'message' => 'INVALID_QUANTITY'

View File

@@ -65,7 +65,7 @@ export const cartMessages = {
QUANTITY_UPDATED: "Quantity has been updated for the package!", 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!", 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!", 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!", 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", NO_DELIVERY_ADDRESS: "No delivery address was added! Please fill the necessary info",
INCOMPLETE_DELIVERY_ADDRESS: "Incomplete delivery address. Please review!", INCOMPLETE_DELIVERY_ADDRESS: "Incomplete delivery address. Please review!",

View File

@@ -34,7 +34,7 @@ class CartItem extends Component {
} }
isQuantityValid(quantity) { isQuantityValid(quantity) {
return quantity > 0 && quantity <= 100; return quantity > 0 && quantity <= 65000;
} }
updateQuantity(cartItem, quantity) { updateQuantity(cartItem, quantity) {