add more validation
This commit is contained in:
@@ -248,6 +248,10 @@ class Wiaas_Cart {
|
||||
* @return bool
|
||||
*/
|
||||
public static function update_package_quantity($package_cart_item_key, $new_quantity) {
|
||||
if ($new_quantity > 65000){
|
||||
return false;
|
||||
}
|
||||
|
||||
$cart_item = WC()->cart->get_cart_item($package_cart_item_key);
|
||||
|
||||
if (!$cart_item) {
|
||||
|
||||
Reference in New Issue
Block a user