Skip to content

Commit

Permalink
Merge pull request #8 from AleksandrsKondratjevs/SWPWA-fixAnchor
Browse files Browse the repository at this point in the history
Fix category anchor attribute
  • Loading branch information
lianastaskevica authored Mar 8, 2021
2 parents 9a487e3 + 2f8a233 commit d8cca87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Setup/Categories/CreateCategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function apply(SetupInterface $setup = null)
$categoryTmp->setImage($data['image'], $mediaAttribute, true, false);
$categoryTmp->setPath($rootCategory->getPath());
$categoryTmp->setDisplayMode('PRODUCTS_AND_PAGE');
$categoryTmp->setIsAnchor(1);
$categoryTmp->save();
}
}
Expand Down

0 comments on commit d8cca87

Please sign in to comment.