diff --git a/composer.json b/composer.json index 773a5d5..9138d44 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "php": ">=7.4.0" }, "type": "magento2-module", - "version": "1.0.3", + "version": "1.0.4", "license": [ "MIT" ], diff --git a/src/Service/CustomerQuote.php b/src/Service/CustomerQuote.php index 7f637ba..c81646a 100644 --- a/src/Service/CustomerQuote.php +++ b/src/Service/CustomerQuote.php @@ -90,9 +90,9 @@ public function getQuote(): CartInterface public function addProduct( CartInterface $quote, ProductInterface $product, - int $quantity = 1 + ?\Magento\Framework\DataObject $request = null ): void { - $quote->addProduct($product, $quantity); + $quote->addProduct($product, $request); $this->quoteRepository->save($quote); }