Answers for "breadcrumbs prestashop 1.6"

PHP
1

prestashop 1.7 breadcrumb

public function getBreadcrumbLinks()
{
    $breadcrumb = parent::getBreadcrumbLinks();
 
    $breadcrumb['links'][] = [
        'title' => $this->getTranslator()->trans('Women', [], 'Breadcrumb'),
        'url' => $this->context->link->getModuleLink('module_name', 'controller_name')
     ];
 
    $breadcrumb['links'][] = [
        'title' => $this->getTranslator()->trans('T-shirts', [], 'Breadcrumb'),
        'url' => ''
     ];
 
     return $breadcrumb;
 }
Posted by: Guest on January-19-2021

Browse Popular Code Answers by Language