Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fix for when TW featured products is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Freek Gruntjes committed Oct 21, 2017
1 parent 7cbf52b commit 73ae09b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Block/Catalog/Product/ProductList/Featured.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,15 @@ private function configureRequest(FeaturedRequest $request)

$request->setTemplate($templateId);
}

/**
* {@inheritdoc}
*/
protected function _toHtml()
{
if (!$this->config->isRecommendationsEnabled(Config::RECOMMENDATION_TYPE_FEATURED)) {
return '';
}
return parent::_toHtml();
}
}

0 comments on commit 73ae09b

Please sign in to comment.