Skip to content

Commit 1c2573f

Browse files
committed
ACP2E-3407: Gift Card Product | Cart Merge is merging Gift Cards
1 parent 651928c commit 1c2573f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/code/Magento/Quote/Model/Quote/Item/Compare.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,9 @@ protected function getOptionValues($value)
6868
*/
6969
public function compare(Item $target, Item $compared)
7070
{
71-
if ($target->getSku() !== null && $target->getSku() === $compared->getSku()) {
72-
return true;
73-
}
74-
7571
if ($target->getProductId() != $compared->getProductId()) {
7672
return false;
7773
}
78-
7974
$targetOptionByCode = $target->getOptionsByCode();
8075
$comparedOptionsByCode = $compared->getOptionsByCode();
8176
if (!$target->compareOptions($targetOptionByCode, $comparedOptionsByCode)) {

0 commit comments

Comments
 (0)