Skip to content

Commit

Permalink
Update addProduct to be more inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusjp committed Apr 28, 2022
1 parent 0dfcebf commit f0e3b2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"php": ">=7.4.0"
},
"type": "magento2-module",
"version": "1.0.3",
"version": "1.0.4",
"license": [
"MIT"
],
Expand Down
4 changes: 2 additions & 2 deletions src/Service/CustomerQuote.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f0e3b2b

Please sign in to comment.