Skip to content

Commit 26dff8d

Browse files
pradeepkanakaPradeep Kanakasol-loup
authored
Fix product link mapped to admin url (#789)
Co-authored-by: Pradeep Kanaka <[email protected]> Co-authored-by: Paul Kang <[email protected]>
1 parent 9278bd4 commit 26dff8d

File tree

1 file changed

+3
-0
lines changed
  • app/code/Meta/Catalog/Model/Product/Feed/Method

1 file changed

+3
-0
lines changed

app/code/Meta/Catalog/Model/Product/Feed/Method/FeedApi.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ private function writeCsvGzipFile(
274274
}
275275
foreach ($products as $product) {
276276
try {
277+
if (!$product->isVisibleInSiteVisibility() && !$product->getParentId()) {
278+
continue;
279+
}
277280
$entry = array_values($this->builder->buildProductEntry($product));
278281
$this->fileHandler->filePutcsv($resource, $entry);
279282
$total++;

0 commit comments

Comments
 (0)