Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC-23635 Added optimisations to handle product bundle on cart page. #198

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 30 additions & 28 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,
]);
}
}