Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 3 additions & 0 deletions Model/Write/Products/ExportEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down