Commit 3ce8e50305364bd851e2716c32e98999e253808d

Authored by Alex Savenko
1 parent 146c6a02

хлебные крошки

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
frontend/views/catalog/product.php
... ... @@ -38,6 +38,12 @@ FlipclockAsset::register($this);
38 38 'category' => $category,
39 39 ],
40 40 ];
  41 + $this->params[ 'breadcrumbs' ][] = [
  42 + 'label' => $category->name.' '.$product->brand->name,
  43 + 'url' => [
  44 + 'catalog/'.$category->alias.'/filters:brands='.strtolower($product->brand->name),
  45 + ],
  46 + ];
41 47 $this->params[ 'breadcrumbs' ][] = $product->fullname . ' #' . $product->enabledVariants[ 0 ]->sku;
42 48  
43 49 $this->registerJs('
... ...