Merge pull request #6135 from jitendra-webkul/master

Issue #6134 fixed
This commit is contained in:
Jitendra Singh 2022-03-25 17:25:41 +05:30 committed by GitHub
commit 8386b04def
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class Cart
foreach ($items as $item) {
if ($item->product->getTypeInstance()->compareOptions($item->additional, $data['additional'])) {
if (isset($data['additional']['parent_id'])) {
if ($item->parent->product->getTypeInstance()->compareOptions($item->parent->additional, $data['additional'])) {
if ($item->parent->product->getTypeInstance()->compareOptions($item->parent->additional, request()->all())) {
return $item;
}
} else {