From 1a766d677255beb945110b0e22e6fc1b4b4d0c89 Mon Sep 17 00:00:00 2001 From: ahuininga-orisha <> Date: Wed, 4 Mar 2026 11:39:28 +0100 Subject: [PATCH] Fix: visibility --- Model/Config.php | 3 +++ Model/Write/Products/ExportEntity.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Model/Config.php b/Model/Config.php index 23ea86f..89f2712 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -203,6 +203,9 @@ public function getSkipChildAttribute($attribute = null, $store = null) $this->skipAttributes = array_flip($skipAttributes); } + //add visibility to skip attributes to prevent issues with parent products when parent visibility is not set to "Catalog, Search" + $this->skipAttributes['visibility'] = true; + if ($attribute === null) { return array_keys($this->skipAttributes); } diff --git a/Model/Write/Products/ExportEntity.php b/Model/Write/Products/ExportEntity.php index 3619208..dd0bced 100644 --- a/Model/Write/Products/ExportEntity.php +++ b/Model/Write/Products/ExportEntity.php @@ -210,6 +210,9 @@ public function getVisibility(): int */ public function setVisibility(int $visibility): void { + if ($this->config->isGroupedExport()) { + $this->addAttribute('parent_visibility', $visibility); + } $this->visibility = $visibility; }