Skip to content

Commit

Permalink
Add breadcrumb to the prices drop page
Browse files Browse the repository at this point in the history
add the missing breadcrumb function
  • Loading branch information
SebBareyre authored and Pierre RAMBAUD committed Jul 12, 2019
1 parent faf13fb commit d88d05a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions controllers/front/listing/PricesDropController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,16 @@ public function getListingLabel()
'Shop.Theme.Catalog'
);
}

public function getBreadcrumbLinks()
{
$breadcrumb = parent::getBreadcrumbLinks();

$breadcrumb['links'][] = [
'title' => $this->trans('On sale', array(), 'Shop.Theme.Catalog'),
'url' => $this->context->link->getPageLink('prices-drop', true),
];

return $breadcrumb;
}
}

0 comments on commit d88d05a

Please sign in to comment.