Skip to content

Commit

Permalink
cart qty fix (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellward authored Jun 19, 2024
1 parent a79e0ca commit 4dbd394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SyneriseApi/Mapper/Event/CartAddRemove.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function prepareParamsFromQuoteProduct(Item $quoteItem): array
"sku" => $sku,
"name" => $product->getName(),
"productUrl" => $product->getUrlInStore(),
"quantity" => $quoteItem->getQty()
"quantity" => $quoteItem->getQty() ?: $product->getData('cart_qty')
];

if ($sku!= $skuVariant) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "synerise/magento2-integration",
"description": "Synerise Magento 2 integration module.",
"type": "magento2-module",
"version": "3.0.3",
"version": "3.0.4",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down

0 comments on commit 4dbd394

Please sign in to comment.