Skip to content

Commit

Permalink
Same product quantity not increment when added with guest user. #21375
Browse files Browse the repository at this point in the history
- removed non required item options while comparing with merge items
  • Loading branch information
Jitheesh committed Feb 28, 2019
1 parent d1ce6a4 commit 30dbc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/Model/Quote/Item/Compare.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function getOptionValues($value)
if (is_string($value) && $this->jsonValidator->isValid($value)) {
$value = $this->serializer->unserialize($value);
if (is_array($value)) {
unset($value['qty'], $value['uenc']);
unset($value['qty'], $value['uenc'], $value['related_product'], $value['item']);
$value = array_filter($value, function ($optionValue) {
return !empty($optionValue);
});
Expand Down

0 comments on commit 30dbc79

Please sign in to comment.