Skip to content

Commit

Permalink
Merge pull request #203 from spryker-shop/bugfix/cc-23635-performance…
Browse files Browse the repository at this point in the history
…-issue-when-updating-product-bundle-quantity

CC-23635 Added optimisations to handle product bundle on cart page.
  • Loading branch information
DmitryLymarenko authored Mar 30, 2023
2 parents 9b2617c + 1aa0e52 commit a617416
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 34 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"spryker-feature/agent-assist": "^202212.0",
"spryker-feature/alternative-products": "dev-master as 202304.0",
"spryker-feature/availability-notification": "dev-master as 202304.0",
"spryker-feature/cart": "^202212.0",
"spryker-feature/cart": "dev-master as 202304.0",
"spryker-feature/catalog": "^202212.0",
"spryker-feature/category-management": "dev-master as 202304.0",
"spryker-feature/checkout": "^202212.0",
Expand All @@ -41,7 +41,7 @@
"spryker-feature/prices": "^202212.0",
"spryker-feature/product": "dev-master as 202304.0",
"spryker-feature/product-barcode": "^202212.0",
"spryker-feature/product-bundles": "^202212.0",
"spryker-feature/product-bundles": "dev-master as 202304.0",
"spryker-feature/product-groups": "^202212.0",
"spryker-feature/product-labels": "dev-master as 202304.0",
"spryker-feature/product-lists": "dev-master as 202304.0",
Expand Down Expand Up @@ -142,7 +142,7 @@
"spryker/orders-rest-api": "^4.11.0",
"spryker/payment-cart-connector": "^1.0.1",
"spryker/payments-rest-api": "^1.1.1",
"spryker/price-cart-connector": "^6.8.0",
"spryker/price-cart-connector": "^6.9.0",
"spryker/price-product-volumes-rest-api": "^1.1.0",
"spryker/product-alternative-product-label-connector": "^1.1.1",
"spryker/product-attributes-rest-api": "^1.0.0",
Expand Down
80 changes: 49 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/Pyz/Zed/PriceCartConnector/PriceCartConnectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Pyz\Zed\PriceCartConnector;

use Generated\Shared\Transfer\ItemTransfer;
use Spryker\Zed\PriceCartConnector\PriceCartConnectorConfig as SprykerPriceCartConnectorConfig;

class PriceCartConnectorConfig extends SprykerPriceCartConnectorConfig
Expand All @@ -15,4 +16,15 @@ class PriceCartConnectorConfig extends SprykerPriceCartConnectorConfig
* @var bool
*/
protected const IS_ZERO_PRICE_ENABLED_FOR_CART_ACTIONS = false;

/**
* @return list<string>
*/
public function getItemFieldsForIdentifier(): array
{
return array_merge(parent::getItemFieldsForIdentifier(), [
ItemTransfer::SKU,
ItemTransfer::QUANTITY,
]);
}
}

0 comments on commit a617416

Please sign in to comment.