Skip to content

Commit 313d888

Browse files
committed
ACP2E-4294: Restricted Category Products Still Counted in Wishlist After Customer Group Update
1 parent e7f6b76 commit 313d888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ protected function _assignProducts()
351351
/** @var \Magento\Wishlist\Model\Item $item */
352352
foreach ($this as $item) {
353353
$product = $productCollection->getItemById($item->getProductId());
354-
if ($product) {
354+
if ($product && !$product->getIsHidden()) {
355355
if ($checkInStock && !$product->isInStock()) {
356356
$this->removeItemByKey($item->getId());
357357
} else {

0 commit comments

Comments
 (0)