diff --git a/packages/Webkul/Product/src/Type/AbstractType.php b/packages/Webkul/Product/src/Type/AbstractType.php index 460dda2dd..ad6c09ee1 100644 --- a/packages/Webkul/Product/src/Type/AbstractType.php +++ b/packages/Webkul/Product/src/Type/AbstractType.php @@ -743,7 +743,7 @@ abstract class AbstractType */ public function prepareForCart($data) { - $data['quantity'] = $data['quantity'] ?? 1; + $data['quantity'] = (int) $data['quantity'] ?? 1; $data = $this->getQtyRequest($data);