Commit 563a6d542f23061bb2ee54e452d8baa78bcb5330

Authored by Alexey Boroda
1 parent fc1e1613

-H1 fix

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
frontend/views/catalog/product.php
... ... @@ -51,7 +51,13 @@
51 51 <div class="container">
52 52 <div class="product_detail" itemscope itemtype="http://schema.org/Product">
53 53  
54   - <h1 itemprop="name"><?= Seo::widget([ 'row' => 'h1' ]) ?></h1>
  54 + <h1 itemprop="name"><?php
  55 + if (empty(Seo::widget([ 'row' => 'h1' ]))) {
  56 + echo $product->fullname;
  57 + } else {
  58 + echo Seo::widget([ 'row' => 'h1' ]);
  59 + }
  60 + ?></h1>
55 61 <div class="product_code">Код:<?= $product->variant->sku ?></div>
56 62 <div class="clearfix"></div>
57 63 <!-- Image part -->
... ...