Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

doman1985

Newbie
  
  • Posts

    8
  • Joined

  • Last visited

doman1985's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Вот какие изменения внес( /default/template/product/product.tpl) <div class="right"> <div class="description"> <h2><?php echo $heading_title; ?></h2> <h1><?php echo $heading_h1; ?></h1> <?php if ($manufacturer) { ?> (/catalog/controller/product/product.tpl) if ($product_info) { $url = ''; if (isset($this->request->get['path'])) { $url .= '&path=' . $this->request->get['path']; } if (isset($this->request->get['manufacturer_id'])) { $url .= '&manufacturer_id=' . $this->request->get['manufacturer_id']; } if (isset($this->request->get['filter_name'])) { $url .= '&filter_name=' . $this->request->get['filter_name']; } if (isset($this->request->get['filter_tag'])) { $url .= '&filter_tag=' . $this->request->get['filter_tag']; } if (isset($this->request->get['filter_description'])) { $url .= '&filter_description=' . $this->request->get['filter_description']; } if (isset($this->request->get['filter_category_id'])) { $url .= '&filter_category_id=' . $this->request->get['filter_category_id']; } $this->data['breadcrumbs'][] = array( 'text' => $product_info['name'], 'href' => $this->url->link('product/product', $url . '&product_id=' . $this->request->get['product_id']), 'separator' => $this->language->get('text_separator') ); if ($product_info['seo_title']) { $this->document->setTitle($product_info['seo_title']); } else { $this->document->setTitle($product_info['name']); } $this->document->setDescription($product_info['meta_description']); $this->document->setKeywords($product_info['meta_keyword']); $this->document->addLink($this->url->link('product/product', 'product_id=' . $this->request->get['product_id']), 'canonical'); if ($product_info['seo_h1']) { $this->data['heading_title'] = $product_info['name']; } else { $this->data['heading_h1'] = $product_info['seo_h1']; } но... что то не там правлю(
  2. Спасибо за подсказку, вроде как удалось вывести название товара, теперь хотелось бы под названием добавить HTML-тег H1:
  3. Вы о этом ? $this->document->setDescription($product_info['meta_description']); $this->document->setKeywords($product_info['meta_keyword']); $this->document->addLink($this->url->link('product/product', 'product_id=' . $this->request->get['product_id']), 'canonical'); if ($product_info['seo_h1']) { $this->data['heading_title'] = $product_info['seo_h1']; } else { $this->data['heading_title'] = $product_info['name']; }
  4. Сборка MaxyStore Version 1.5.4.1 Подскажите где проверить наличие строки $this->data['heading_title'] = $product_info['name'];
  5. Спасибо за ответ, но это видимо ошибся когда код в вопрос копировал. Вот как на самом деле: <div class="right"> <div class="description"> <h1><?php echo $heading_title; ?></h1> <?php if ($manufacturer) { ?> <span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br /> <?php } ?> <span><?php echo $text_model; ?></span> <?php echo $model; ?><br /> <?php if ($this->config->get('config_display_weight') && $weight) { ?> <span><?php echo $text_weight; ?> </span> <?php echo $weight; ?><br /> <?php } ?> <?php if ($this->config->get('config_display_sku') && $sku) { ?> <span><?php echo $text_sku; ?> </span> <?php echo $sku; ?><br /> <?php } ?> из файла product.tpl
  6. Здравствуйте! Помогите пожалуйста советом. Необходимо вывести название товара на страницу товара.Сборка Version 1.5.4.1. При вставке <h1><!--?php echo $heading_title; ?--></h1>" ( в product.tpl ) выводитсяHTML-тег H1: . А необходимо непосредственно само название товара. Что именно нужно подправить, чтоб получить желаемый результат ???
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.