Skip to content

Commit

Permalink
Temporary disable displaying category names
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Apr 14, 2023
1 parent 403f5de commit 10c09cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/AbstractDataLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public function __construct(
*/
protected function getCategoryNames(Product $product): array
{
/* Temporary disable displaying category names,
* as it is optional and slows down the website speed
*/
return [];

$result = [];

if ($productCategory = $this->getCategoryByProduct($product)) {
Expand Down

0 comments on commit 10c09cf

Please sign in to comment.