Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

onnia

Новичок
  
  • Публикаций

    21
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные пользователем onnia

  1. Нашлось готовое решение для использования атрибутов rel="next" и rel="prev", решающее проблему дублей страниц категории.

    Изменяется файл /system/library/pagination.php

    Это:

    public $style_results = 'results';
    
    public function render() {
    ...
    }

    Заменить на:

    public $style_results = 'results';
    
    public $next = null;
    public $prev = null;
    
    public function render() {
    ...
    }

    Это:

    if ($page > 1) {
    $output .= ' <a href="' . str_replace('{page}', 1, $this->url) . '">' . $this->text_first . '</a> <a href="' . str_replace('{page}', $page - 1, $this->url) . '">' . $this->text_prev . '</a> ';
    }

    Заменить на:

    if ($page > 1) {
    $output .= ' <a href="' . str_replace('{page}', 1, $this->url) . '">' . $this->text_first . '</a> <a href="' . str_replace('{page}', $page - 1, $this->url) . '">' . $this->text_prev . '</a> ';
    $this->prev = str_replace('{page}', $page - 1, $this->url);
    }

    Это:

    if ($page < $num_pages) {
    $output .= ' <a href="' . str_replace('{page}', $page + 1, $this->url) . '">' . $this->text_next . '</a> <a href="' . str_replace('{page}', $num_pages, $this->url) . '">' . $this->text_last . '</a> ';
    }

    Заменить на:

    if ($page < $num_pages) {
    $output .= ' <a href="' . str_replace('{page}', $page + 1, $this->url) . '">' . $this->text_next . '</a> <a href="' . str_replace('{page}', $num_pages, $this->url) . '">' . $this->text_last . '</a> ';
    $this->next = str_replace('{page}', $page + 1, $this->url);
    }

    И в конце файла это:

    }
    }
    ?>

    Заменить на:

    }
    public function getNext() {
    return $this->next;
    }
    
    public function getPrev() {
    return $this->prev;
    }
    }
    ?>

    После чего во всех контроллерах вывода пагинации /catalog/controller/product/category.php, /catalog/controller/product/search.php, /catalog/controller/product/manufacturer.php, /catalog/controller/product/special.php

    Это:

    $this->data['pagination'] = $pagination->render();

    Заменить на:

    $this->data['pagination'] = $pagination->render();
    if ($pagination->getNext()) {
    $this->document->addLink($pagination->getNext(), 'next');
    }
    if ($pagination->getPrev()) {
    $this->document->addLink($pagination->getPrev(), 'prev');
    }

    В результате, посмотрев код 2-й страницы категории (ну и всех других тоже), можно будет увидеть в хед-секции нужные гуглу нам атрибуты:

    <link href="http://site.ru/category?page=3" rel="next" />

    <link href="http://site.ru/category?page=1" rel="prev" />

    Решение нашлось тут.

    Помогите, пожалуйста. Сделала всё как выше, работает супер, только вот теперь поиск перестал работать...  Ругается так /home/bh51164/public_html/vqmod/vqcache/vq2-catalog_controller_product_search.php on line 546 

     

    А по этому пути у меня вот что пишет

    <?php 

     

    class ControllerProductSearch extends Controller {
    public function index() { 
        $this->language->load('product/search');
     
    $this->load->model('catalog/category');
        # Filter start
        $this->load->model('catalog/filter');
        # Filter end
    $this->load->model('catalog/product');
     
    $this->load->model('tool/image'); 
     
    if (isset($this->request->get['filter_name'])) {
    $filter_name = $this->request->get['filter_name'];
    } else {
    $filter_name = '';
     
    if (isset($this->request->get['filter_tag'])) {
    $filter_tag = $this->request->get['filter_tag'];
    } elseif (isset($this->request->get['filter_name'])) {
    $filter_tag = $this->request->get['filter_name'];
    } else {
    $filter_tag = '';
     
    if (isset($this->request->get['filter_description'])) {
    $filter_description = $this->request->get['filter_description'];
    } else {
    $filter_description = '';
     
    if (isset($this->request->get['filter_category_id'])) {
    $filter_category_id = $this->request->get['filter_category_id'];
    } else {
    $filter_category_id = 0;
     
    if (isset($this->request->get['filter_sub_category'])) {
    $filter_sub_category = $this->request->get['filter_sub_category'];
    } else {
    $filter_sub_category = '';
     
    if (isset($this->request->get['sort'])) {
    $sort = $this->request->get['sort'];
    } else {
    $sort = 'p.sort_order';
     
    if (isset($this->request->get['order'])) {
    $order = $this->request->get['order'];
    } else {
    $order = 'ASC';
    }
     
    if (isset($this->request->get['page'])) {
    $page = $this->request->get['page'];
    } else {
    $page = 1;
    }
     
    if (isset($this->request->get['limit'])) {
    $limit = $this->request->get['limit'];
    } else {
    $limit = $this->config->get('config_catalog_limit');
    }
     
    if (isset($this->request->get['filter_name'])) {
    $this->document->setTitle($this->language->get('heading_title') .  ' - ' . $this->request->get['filter_name']);
    } else {
    $this->document->setTitle($this->language->get('heading_title'));
    }
     
    $this->data['breadcrumbs'] = array();
     
        $this->data['breadcrumbs'][] = array( 
            'text'      => $this->language->get('text_home'),
    'href'      => $this->url->link('common/home'),
          'separator' => false
        );
     
    $url = '';
     
    if (isset($this->request->get['filter_name'])) {
    $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
    }
     
    if (isset($this->request->get['filter_tag'])) {
    $url .= '&filter_tag=' . urlencode(html_entity_decode($this->request->get['filter_tag'], ENT_QUOTES, 'UTF-8'));
    }
     
    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'];
    }
     
    if (isset($this->request->get['filter_sub_category'])) {
    $url .= '&filter_sub_category=' . $this->request->get['filter_sub_category'];
    }
     
    if (isset($this->request->get['sort'])) {
    $url .= '&sort=' . $this->request->get['sort'];
    }
     
    if (isset($this->request->get['order'])) {
    $url .= '&order=' . $this->request->get['order'];
    }
     
    if (isset($this->request->get['page'])) {
    $url .= '&page=' . $this->request->get['page'];
    }
     
    if (isset($this->request->get['limit'])) {
    $url .= '&limit=' . $this->request->get['limit'];
    }
     
        $this->data['breadcrumbs'][] = array(
            'text'      => $this->language->get('heading_title'),
    'href'      => $this->url->link('product/search', $url),
          'separator' => $this->language->get('text_separator')
        );
     
    if (isset($this->request->get['filter_name'])) {
        $this->data['heading_title'] = $this->language->get('heading_title') .  ' - ' . $this->request->get['filter_name'];
    } else {
    $this->data['heading_title'] = $this->language->get('heading_title');
    }
     
    $this->data['text_empty'] = $this->language->get('text_empty');
               $this->data['text_critea'] = $this->language->get('text_critea');
               $this->data['text_search'] = $this->language->get('text_search');
    $this->data['text_keyword'] = $this->language->get('text_keyword');
    $this->data['text_category'] = $this->language->get('text_category');
    $this->data['text_sub_category'] = $this->language->get('text_sub_category');
    $this->data['text_quantity'] = $this->language->get('text_quantity');
    $this->data['text_manufacturer'] = $this->language->get('text_manufacturer');
    $this->data['text_model'] = $this->language->get('text_model');
    $this->data['text_price'] = $this->language->get('text_price');
    $this->data['text_tax'] = $this->language->get('text_tax');
    $this->data['text_points'] = $this->language->get('text_points');
    $this->data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0));
    $this->data['text_display'] = $this->language->get('text_display');
    $this->data['text_list'] = $this->language->get('text_list');
    $this->data['text_grid'] = $this->language->get('text_grid');
    $this->data['text_sort'] = $this->language->get('text_sort');
    $this->data['text_limit'] = $this->language->get('text_limit');
     
    $this->data['entry_search'] = $this->language->get('entry_search');
        $this->data['entry_description'] = $this->language->get('entry_description');
     
        $this->data['button_search'] = $this->language->get('button_search');
    $this->data['button_cart'] = $this->language->get('button_cart');
    $this->data['button_wishlist'] = $this->language->get('button_wishlist');
    $this->data['button_compare'] = $this->language->get('button_compare');
     
    $this->data['compare'] = $this->url->link('product/compare');
     
    $this->load->model('catalog/category');
     
    // 3 Level Category Search
    $this->data['categories'] = array();
     
    $categories_1 = $this->model_catalog_category->getCategories(0);
     
    foreach ($categories_1 as $category_1) {
    $level_2_data = array();
     
    $categories_2 = $this->model_catalog_category->getCategories($category_1['category_id']);
     
    foreach ($categories_2 as $category_2) {
    $level_3_data = array();
     
    $categories_3 = $this->model_catalog_category->getCategories($category_2['category_id']);
     
    foreach ($categories_3 as $category_3) {
    $level_3_data[] = array(
    'category_id' => $category_3['category_id'],
    'name'        => $category_3['name'],
    );
    }
     
    $level_2_data[] = array(
    'category_id' => $category_2['category_id'],
    'name'        => $category_2['name'],
    'children'    => $level_3_data
    );
    }
     
    $this->data['categories'][] = array(
    'category_id' => $category_1['category_id'],
    'name'        => $category_1['name'],
    'children'    => $level_2_data
    );
    }
     
    $this->data['products'] = array();
     
    if (isset($this->request->get['filter_name']) || isset($this->request->get['filter_tag'])) {
    $data = array(
    'filter_name'         => $filter_name, 
    'filter_tag'          => $filter_tag, 
    'filter_description'  => $filter_description,
    'filter_category_id'  => $filter_category_id, 
    'filter_sub_category' => $filter_sub_category, 
    'sort'                => $sort,
    'order'               => $order,
    'start'               => ($page - 1) * $limit,
    'limit'               => $limit
    );
     
    $product_total = $this->model_catalog_product->getTotalProducts($data);
     
    $results = $this->model_catalog_product->getProducts($data);
     
    # Filter start
          $filter_module = $this->config->get('filter_module');
     
          if (isset($filter_module[0])) {
            $filter_settings = $filter_module[0];
     
            $show_type = $filter_settings['pco_show_type'];
            $show_limit = (int)$filter_settings['pco_show_limit'];
     
            $products_id = array();
            foreach ($results as $result) $products_id[] = (int)$result['product_id'];
     
            $product_options = array();
     
            if ($products_id) {
              $filter_options = $this->model_catalog_filter->getOptionsByProductsId($products_id);
     
              foreach ($filter_options as $product_id => $options) {
                array_splice($options, $show_limit);
     
                foreach($options as $option) {
                  if ($show_type == 'inline') {
                    $product_options[$product_id][] = $option['name'] . ': <b>' . $option['values'] . '</b>';
                  } else {
                    $product_options[$product_id][] = array(
                      'name'   => $option['name'],
                      'values' => $option['values']
                    );
                  }
                }
              }
            }
          }
    # Filter end
     
    foreach ($results as $result) {
    if ($result['image']) {
    $image = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height'));
    } else {
    $image = false;
    }
     
    if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
    $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));
    } else {
    $price = false;
    }
     
    if ((float)$result['special']) {
    $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')));
    } else {
    $special = false;
    }
     
    if ($this->config->get('config_tax')) {
    $tax = $this->currency->format((float)$result['special'] ? $result['special'] : $result['price']);
    } else {
    $tax = false;
    }
     
    if ($this->config->get('config_review_status')) {
    $rating = (int)$result['rating'];
    } else {
    $rating = false;
    }
     
            # Filter start
            if ($show_type == 'inline') {
              if (isset($product_options[$result['product_id']])) {
      $attributes = implode(' / ', $product_options[$result['product_id']]);
      } else {
      $attributes = '';
      }
            } else {
              if (isset($product_options[$result['product_id']])) {
      $attributes = $product_options[$result['product_id']];
      } else {
      $attributes = array();
      }
            }
            # Filter end
     
    $this->data['products'][] = array(
    'product_id'  => $result['product_id'],
    'thumb'       => $image,
    'name'        => $result['name'],
    'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
    # Filter start
    'attributes'  => $attributes,
    # Filter end
    'price'       => $price,
    'special'     => $special,
     
     
    'upc'      => $result['upc'],
     
     
    'tax'         => $tax,
    'rating'      => $result['rating'],
    'reviews'     => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
    'href'        => $this->url->link('product/product', $url . '&product_id=' . $result['product_id'])
    );
    }
     
    $url = '';
     
    if (isset($this->request->get['filter_name'])) {
    $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
    }
     
    if (isset($this->request->get['filter_tag'])) {
    $url .= '&filter_tag=' . urlencode(html_entity_decode($this->request->get['filter_tag'], ENT_QUOTES, 'UTF-8'));
    }
     
    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'];
    }
     
    if (isset($this->request->get['filter_sub_category'])) {
    $url .= '&filter_sub_category=' . $this->request->get['filter_sub_category'];
    }
     
    if (isset($this->request->get['limit'])) {
    $url .= '&limit=' . $this->request->get['limit'];
    }
     
    $this->data['sorts'] = array();
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_default'),
    'value' => 'p.sort_order-ASC',
    'href'  => $this->url->link('product/search', 'sort=p.sort_order&order=ASC' . $url)
    );
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_name_asc'),
    'value' => 'pd.name-ASC',
    'href'  => $this->url->link('product/search', 'sort=pd.name&order=ASC' . $url)
    ); 
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_name_desc'),
    'value' => 'pd.name-DESC',
    'href'  => $this->url->link('product/search', 'sort=pd.name&order=DESC' . $url)
    );
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_price_asc'),
    'value' => 'p.price-ASC',
    'href'  => $this->url->link('product/search', 'sort=p.price&order=ASC' . $url)
    ); 
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_price_desc'),
    'value' => 'p.price-DESC',
    'href'  => $this->url->link('product/search', 'sort=p.price&order=DESC' . $url)
    ); 
     
    if ($this->config->get('config_review_status')) {
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_rating_desc'),
    'value' => 'rating-DESC',
    'href'  => $this->url->link('product/search', 'sort=rating&order=DESC' . $url)
    ); 
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_rating_asc'),
    'value' => 'rating-ASC',
    'href'  => $this->url->link('product/search', 'sort=rating&order=ASC' . $url)
    );
    }
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_model_asc'),
    'value' => 'p.model-ASC',
    'href'  => $this->url->link('product/search', 'sort=p.model&order=ASC' . $url)
    ); 
     
    $this->data['sorts'][] = array(
    'text'  => $this->language->get('text_model_desc'),
    'value' => 'p.model-DESC',
    'href'  => $this->url->link('product/search', 'sort=p.model&order=DESC' . $url)
    );
     
    $url = '';
     
    if (isset($this->request->get['filter_name'])) {
    $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
    }
     
    if (isset($this->request->get['filter_tag'])) {
    $url .= '&filter_tag=' . urlencode(html_entity_decode($this->request->get['filter_tag'], ENT_QUOTES, 'UTF-8'));
    }
     
    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'];
    }
     
    if (isset($this->request->get['filter_sub_category'])) {
    $url .= '&filter_sub_category=' . $this->request->get['filter_sub_category'];
    }
     
    if (isset($this->request->get['sort'])) {
    $url .= '&sort=' . $this->request->get['sort'];
    }
     
    if (isset($this->request->get['order'])) {
    $url .= '&order=' . $this->request->get['order'];
    }
     
    $this->data['limits'] = array();
     
    $this->data['limits'][] = array(
    'text'  => $this->config->get('config_catalog_limit'),
    'value' => $this->config->get('config_catalog_limit'),
    'href'  => $this->url->link('product/search', $url . '&limit=' . $this->config->get('config_catalog_limit'))
    );
     
    $this->data['limits'][] = array(
    'text'  => 25,
    'value' => 25,
    'href'  => $this->url->link('product/search', $url . '&limit=25')
    );
     
    $this->data['limits'][] = array(
    'text'  => 50,
    'value' => 50,
    'href'  => $this->url->link('product/search', $url . '&limit=50')
    );
     
    $this->data['limits'][] = array(
    'text'  => 75,
    'value' => 75,
    'href'  => $this->url->link('product/search', $url . '&limit=75')
    );
     
    $this->data['limits'][] = array(
    'text'  => 100,
    'value' => 100,
    'href'  => $this->url->link('product/search', $url . '&limit=100')
    );
     
    $url = '';
     
    if (isset($this->request->get['filter_name'])) {
    $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
    }
     
    if (isset($this->request->get['filter_tag'])) {
    $url .= '&filter_tag=' . urlencode(html_entity_decode($this->request->get['filter_tag'], ENT_QUOTES, 'UTF-8'));
    }
     
    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'];
    }
     
    if (isset($this->request->get['filter_sub_category'])) {
    $url .= '&filter_sub_category=' . $this->request->get['filter_sub_category'];
    }
     
    if (isset($this->request->get['sort'])) {
    $url .= '&sort=' . $this->request->get['sort'];
    }
     
    if (isset($this->request->get['order'])) {
    $url .= '&order=' . $this->request->get['order'];
    }
     
    if (isset($this->request->get['limit'])) {
    $url .= '&limit=' . $this->request->get['limit'];
    }
     
    $pagination = new Pagination();
    $pagination->total = $product_total;
    $pagination->page = $page;
    $pagination->limit = $limit;
    $pagination->text = $this->language->get('text_pagination');
    $pagination->url = $this->url->link('product/search', $url . '&page={page}');
     
    $this->data['pagination'] = $pagination->render();
    if ($pagination->getNext()) {
    $this->document->addLink($pagination->getNext(), 'next');
    }
    if ($pagination->getPrev()) {
    $this->document->addLink($pagination->getPrev(), 'prev');
    }
     
    $this->data['filter_name'] = $filter_name;
    $this->data['filter_description'] = $filter_description;
    $this->data['filter_category_id'] = $filter_category_id;
    $this->data['filter_sub_category'] = $filter_sub_category;
     
    $this->data['sort'] = $sort;
    $this->data['order'] = $order;
    $this->data['limit'] = $limit;
     
    if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/search.tpl')) {
    $this->template = $this->config->get('config_template') . '/template/product/search.tpl';
    } else {
    $this->template = 'default/template/product/search.tpl';
    }
     
    $this->children = array(
    'common/column_left',
    'common/column_right',
    'common/content_top',
    'common/content_bottom',
    'common/footer',
    'common/header'
    );
    $this->response->setOutput($this->render());
      }
    }

    ?>

  2. У меня ничего не работает... В чем может быть проблема? У меня ocStore Version 1.5.4.1

    Это product.tpl


    <?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
    <div id="content"><?php echo $content_top; ?>
      <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
      </div>
      <h1><?php echo $heading_title; ?></h1>
      <div class="product-info">
        <?php if ($thumb || $images) { ?>
        <div class="left">
          <?php if ($thumb) { ?>
          <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
          <?php } ?>
          <?php if ($images) { ?>
          <div class="image-additional">
            <?php foreach ($images as $image) { ?>
            <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
            <?php } ?>
          </div>
          <?php } ?>
        </div>
        <?php } ?>
        <div class="right">
          <div class="description">
            <?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 ($reward) { ?>
            <span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />
            <?php } ?>
            <span><?php echo $text_stock; ?></span> <?php echo $stock; ?></div>
          <?php if ($price) { ?>
          <div class="price"><?php echo $text_price; ?>
            <?php if (!$special) { ?>
            <?php echo $price; ?>
            <?php } else { ?>
            <span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
            <?php } ?>
            <br />
            <?php if ($tax) { ?>
            <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
            <?php } ?>
            <?php if ($points) { ?>
            <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span><br />
            <?php } ?>
            <?php if ($discounts) { ?>
            <br />
            <div class="discount">
              <?php foreach ($discounts as $discount) { ?>
              <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />
              <?php } ?>
            </div>
            <?php } ?>
          </div>
          <?php } ?>
          <?php if ($options) { ?>
          <div class="options">
            <h2><?php echo $text_option; ?></h2>
            <br />
            <?php foreach ($options as $option) { ?>
            <?php if ($option['type'] == 'select') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <select name="option[<?php echo $option['product_option_id']; ?>]">
                <option value=""><?php echo $text_select; ?></option>
                <?php foreach ($option['option_value'] as $option_value) { ?>
                <option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
                <?php if ($option_value['price']) { ?>
                (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                <?php } ?>
                </option>
                <?php } ?>
              </select>
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'radio') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <?php foreach ($option['option_value'] as $option_value) { ?>
              <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
              <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
                <?php if ($option_value['price']) { ?>
                (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                <?php } ?>
              </label>
              <br />
              <?php } ?>
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'checkbox') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <?php foreach ($option['option_value'] as $option_value) { ?>
              <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
              <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
                <?php if ($option_value['price']) { ?>
                (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                <?php } ?>
              </label>
              <br />
              <?php } ?>
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'image') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <table class="option-image">
                <?php foreach ($option['option_value'] as $option_value) { ?>
                <tr>
                  <td style="width: 1px;"><input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" /></td>
                  <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /></label></td>
                  <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
                      <?php if ($option_value['price']) { ?>
                      (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                      <?php } ?>
                    </label></td>
                </tr>
                <?php } ?>
              </table>
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'text') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'textarea') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <textarea name="option[<?php echo $option['product_option_id']; ?>]" cols="40" rows="5"><?php echo $option['option_value']; ?></textarea>
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'file') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <input type="button" value="<?php echo $button_upload; ?>" id="button-option-<?php echo $option['product_option_id']; ?>" class="button">
              <input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" />
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'date') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="date" />
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'datetime') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="datetime" />
            </div>
            <br />
            <?php } ?>
            <?php if ($option['type'] == 'time') { ?>
            <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
              <?php if ($option['required']) { ?>
              <span class="required">*</span>
              <?php } ?>
              <b><?php echo $option['name']; ?>:</b><br />
              <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="time" />
            </div>
            <br />
            <?php } ?>
            <?php } ?>
          </div>
          <?php } ?>
          <div class="cart">
            <div><?php echo $text_qty; ?>
              <input type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" />
              <input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />
               
              <input type="button" value="<?php echo $button_cart; ?>" id="button-cart" class="button" />
            </div> 
            <?php if ($minimum > 1) { ?>
            <div class="minimum"><?php echo $text_minimum; ?></div>
            <?php } ?>
          </div>
          <?php if ($review_status) { ?>
          <div class="review">
            <div><img src="catalog/view/theme/default/image/stars-<?php echo $rating; ?>.png" alt="<?php echo $reviews; ?>" />  <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $reviews; ?></a>  |  <a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $text_write; ?></a></div>
            <div class="share"><script type="text/javascript" src="//yastatic.net/share/share.js" charset="utf-8"></script><div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="vkontakte,facebook,twitter,odnoklassniki,moimir,lj,moikrug,gplus"></div>
            </div>
          </div>
          <?php } ?>
        </div>
      </div>
      <div id="tabs" class="htabs"><a href="#tab-description"><?php echo $tab_description; ?></a>
    <?php if ($attributes) { ?>
        <a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
        <?php } ?>
        <?php if ($review_status) { ?>
        <a href="#tab-review"><?php echo $tab_review; ?></a>
        <?php } ?>
        <?php if ($products) { ?>
        <a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
        <?php } ?>
      </div>
      <div id="tab-description" class="tab-content"><?php echo $description; ?></div>
    <!-- Filter start -->
    <?php if ($attributes) { ?>
      <div id="tab-attribute" class="tab-content">
        <table class="attribute">
          <?php foreach ($attributes as $attribute) { ?>
          <tr>
            <td><?php echo $attribute['name']; ?></td>
            <td><?php echo $attribute['text']; ?></td>
          </tr>
          <?php } ?>
        </table>
      </div>
      <?php } ?>
    <!-- Filter end -->
      <?php if ($review_status) { ?>
      <div id="tab-review" class="tab-content">
        <div id="review"></div>
        <h2 id="review-title"><?php echo $text_write; ?></h2>
        <b><?php echo $entry_name; ?></b><br />
        <input type="text" name="name" value="" />
        <br />
        <br />
        <b><?php echo $entry_review; ?></b>
        <textarea name="text" cols="40" rows="8" style="width: 98%;"></textarea>
        <span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
        <br />
        <b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span> 
        <input type="radio" name="rating" value="1" />
         
        <input type="radio" name="rating" value="2" />
         
        <input type="radio" name="rating" value="3" />
         
        <input type="radio" name="rating" value="4" />
         
        <input type="radio" name="rating" value="5" />
         <span><?php echo $entry_good; ?></span><br />
        <br />
        <b><?php echo $entry_captcha; ?></b><br />
        <input type="text" name="captcha" value="" />
        <br />
        <img src="index.php?route=product/product/captcha" alt="" id="captcha" /><br />
        <br />
        <div class="buttons">
          <div class="right"><a id="button-review" class="button"><?php echo $button_continue; ?></a></div>
        </div>
      </div>
      <?php } ?>
      <?php if ($products) { ?>
      <div id="tab-related" class="tab-content">
        <div class="box-product">
          <?php foreach ($products as $product) { ?>
          <div>
            <?php if ($product['thumb']) { ?>
            <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
            <?php } ?>
            <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
            <?php if ($product['price']) { ?>
            <div class="price">
              <?php if (!$product['special']) { ?>
              <?php echo $product['price']; ?>
              <?php } else { ?>
              <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
              <?php } ?>
            </div>
            <?php } ?>
            <?php if ($product['rating']) { ?>
            <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
            <?php } ?>
            <a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a></div>
          <?php } ?>
        </div>
      </div>
      <?php } ?>
      <?php if ($tags) { ?>
      <div class="tags"><b><?php echo $text_tags; ?></b>
        <?php for ($i = 0; $i < count($tags); $i++) { ?>
        <?php if ($i < (count($tags) - 1)) { ?>
        <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
        <?php } else { ?>
        <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
        <?php } ?>
        <?php } ?>
      </div>
      <?php } ?>
      <?php echo $content_bottom; ?></div>
    <script type="text/javascript"><!--
    $('.colorbox').colorbox({
    overlayClose: true,
    opacity: 0.5
    });
    //--></script> 
    <script type="text/javascript"><!--
    $('#button-cart').bind('click', function() {
    $.ajax({
    url: 'index.php?route=checkout/cart/add',
    type: 'post',
    data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
    dataType: 'json',
    success: function(json) {
    $('.success, .warning, .attention, information, .error').remove();
     
    if (json['error']) {
    if (json['error']['option']) {
    for (i in json['error']['option']) {
    $('#option-' + i).after('<span class="error">' + json['error']['option'] + '</span>');
    }
    }
     
    if (json['success']) {
    $('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
     
    $('.success').fadeIn('slow');
     
    $('#cart-total').html(json['total']);
     
    $('html, body').animate({ scrollTop: 0 }, 'slow'); 
    }
    }
    });
    });
    //--></script>
    <?php if ($options) { ?>
    <script type="text/javascript" src="catalog/view/javascript/jquery/ajaxupload.js"></script>
    <?php foreach ($options as $option) { ?>
    <?php if ($option['type'] == 'file') { ?>
    <script type="text/javascript"><!--
    new AjaxUpload('#button-option-<?php echo $option['product_option_id']; ?>', {
    action: 'index.php?route=product/product/upload',
    name: 'file',
    autoSubmit: true,
    responseType: 'json',
    onSubmit: function(file, extension) {
    $('#button-option-<?php echo $option['product_option_id']; ?>').after('<img src="catalog/view/theme/default/image/loading.gif" class="loading" style="padding-left: 5px;" />');
    $('#button-option-<?php echo $option['product_option_id']; ?>').attr('disabled', true);
    },
    onComplete: function(file, json) {
    $('#button-option-<?php echo $option['product_option_id']; ?>').attr('disabled', false);
     
    $('.error').remove();
     
    if (json['success']) {
    alert(json['success']);
     
    $('input[name=\'option[<?php echo $option['product_option_id']; ?>]\']').attr('value', json['file']);
    }
     
    if (json['error']) {
    $('#option-<?php echo $option['product_option_id']; ?>').after('<span class="error">' + json['error'] + '</span>');
    }
     
    $('.loading').remove();
    }
    });
    //--></script>
    <?php } ?>
    <?php } ?>
    <?php } ?>
    <script type="text/javascript"><!--
    $('#review .pagination a').live('click', function() {
    $('#review').fadeOut('slow');
     
    $('#review').load(this.href);
     
    $('#review').fadeIn('slow');
     
    return false;
    });
     
    $('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>');
     
    $('#button-review').bind('click', function() {
    $.ajax({
    url: 'index.php?route=product/product/write&product_id=<?php echo $product_id; ?>',
    type: 'post',
    dataType: 'json',
    data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('input[name=\'rating\']:checked').val() ? $('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('input[name=\'captcha\']').val()),
    beforeSend: function() {
    $('.success, .warning').remove();
    $('#button-review').attr('disabled', true);
    $('#review-title').after('<div class="attention"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
    },
    complete: function() {
    $('#button-review').attr('disabled', false);
    $('.attention').remove();
    },
    success: function(data) {
    if (data['error']) {
    $('#review-title').after('<div class="warning">' + data['error'] + '</div>');
    }
     
    if (data['success']) {
    $('#review-title').after('<div class="success">' + data['success'] + '</div>');
     
    $('input[name=\'name\']').val('');
    $('textarea[name=\'text\']').val('');
    $('input[name=\'rating\']:checked').attr('checked', '');
    $('input[name=\'captcha\']').val('');
    }
    }
    });
    });
    //--></script> 
    <script type="text/javascript"><!--
    $('#tabs a').tabs();
    //--></script> 
    <script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script> 
    <script type="text/javascript"><!--
    if ($.browser.msie && $.browser.version == 6) {
    $('.date, .datetime, .time').bgIframe();
    }
     
    $('.date').datepicker({dateFormat: 'yy-mm-dd'});
    $('.datetime').datetimepicker({
    dateFormat: 'yy-mm-dd',
    timeFormat: 'h:m'
    });
    $('.time').timepicker({timeFormat: 'h:m'});
    //--></script> 
    <?php echo $footer; ?>

     

    А это free_stickers.xml


    <modification>
        <id>Free stickers</id>
        <version>1.2</version>
        <vqmver>2.4.1</vqmver>
        <author>RGB</author>
    <file name="catalog/view/theme/*/template/common/header.tpl">
    <operation>
    <search position="after">
          <![CDATA[
            <link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
          ]]>
    </search>
    <add>
    <![CDATA[
            <link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/free_stickers.css" />
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница самого товара -->
    <file name="catalog/view/theme/*/template/product/product.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><?php if ($upc) { ?> <i style="
        background: url('catalog/view/theme/default/image/sticker_<?php echo $upc; ?>.png');"></i><?php } ?><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
    ]]>
    </add>
    </operation>
    <operation>
    <search position="replace">
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/product/product.php">
    <operation>
    <search position="after">
    <![CDATA[
    $this->data['model'] = $product_info['model'];
    ]]>
    </search>
    <add>
    <![CDATA[
    $this->data['upc'] = $product_info['upc'];
    ]]>
    </add>
    </operation>
    <operation>
    <search position="after">
    <![CDATA[
    'special' => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'         => $result['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница товаров из категории -->
    <file name="catalog/view/theme/*/template/product/category.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/product/category.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special'     => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'         => $result['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница сравнения -->
    <file name="catalog/view/theme/*/template/product/compare.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <img src=<?php echo $products[$product['product_id]]['thumb']; ?>" alt="<?php echo $products[$product['product_id']]['name']; ?>" />
    ]]>
    </search>
    <add>
    <![CDATA[
    <?php if ($products[$product['product_id']]['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $products[$product['product_id']]['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $products[$product['product_id']]['thumb']; ?>" alt="<?php echo $products[$product['product_id']]['name']; ?>" />
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/product/compare.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special'      => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'        => $product_info['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница вишлиста -->
    <file name="catalog/view/theme/*/template/account/wishlist.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <img src=<?php echo $product['thumb]; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" />
    ]]>
    </search>
    <add>
    <![CDATA[
    <?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/cat-<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" />
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/account/wishlist.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special'    => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'        => $product_info['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница товаров производителя -->
    <file name="catalog/view/theme/*/template/product/manufacturer_info.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/product/manufacturer.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special'     => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'      => $result['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница товаров из поиска -->
    <file name="catalog/view/theme/*/template/product/search.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/product/search.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special'     => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'      => $result['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Страница акционных товаров -->
    <file name="catalog/view/theme/*/template/product/special.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/product/special.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special'     => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'      => $result['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Модуль Рекомендуемые -->
    <file name="catalog/view/theme/*/template/module/featured.tpl">
    <operation>
    <search position="replace">
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </search>
    <add>
    <![CDATA[
    <div class=image"><a href="<?php echo $product['href]; ?>"><?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
    ]]>
    </add>
    </operation>
    </file>
    <file name="catalog/controller/module/featured.php">
    <operation>
    <search position="after">
    <![CDATA[
    'special' => $special,
    ]]>
    </search>
    <add>
    <![CDATA[
    'upc'      => $product_info['upc'],
    ]]>
    </add>
    </operation>
    </file>
    <!-- Filterpro new -->
        <file name="catalog/view/theme/*/template/module/filterpro_products.tpl">
            <operation>
                <search position="replace">
                <![CDATA[<img src=<?php echo $product['thumb]; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" />]]>
                </search>
                <add>
                <![CDATA[
                    <?php if ($product['upc']) { ?><i style="background: url('catalog/view/theme/default/image/sticker_<?php echo $product['upc']; ?>.png');"></i><?php } ?><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" />
                ]]>
                </add>
            </operation>
        </file>
        <file name="catalog/controller/module/filterpro.php">
            <operation>
                <search position="after">
                <![CDATA[
                    'special'     => $special,
                ]]>
                </search>
                <add>
                <![CDATA[
                    'upc'         => $result['upc'],
                ]]>
                </add>
            </operation>
        </file>
    </modification>

     

  3. Здравствуйте!

    Аналогичная ситуация. Захожу в админку, хочу отредактировать сео урл товара, потому что ссылка открывается неправильная, а там всё верно прописано...

    В чем может быть проблема? Кэш чистила, ничего не помогло...

    Заранее спасибо!

  4.  

    Подскажите пожалуйста.

    нужно сделать редирект страницы /index.php?route=information/infocategory&path=1&xxx на /blog/&xxx

    делаю так:

     

    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^index.php?route=information/infocategory&path=1$
    RewriteRule ^(.*)$ blog/$1 [R=301,L]
     
    и естественно ничего не работает :)

     

     

    Попробуйте так:

    RewriteCond %{QUERY_STRING} ^_route_=information/infocategory&path=1$

    RewriteRule ^(.*)$ полная ссылка сайта/blog/&xxx? [R=301,L]

  5. попробуйте либо убрать записи Disallow: /catalog(тогда вы откроете для индекса эту ссылку но и ссылки без сеоупла) или переделать сео урл категории если сайт только запущен и еще только индексируется. Если он уже приносит трафик то нужно еще будет сделать 301 редирект со старого адреса категории на новый 

     

    Спасибо! Открыла каталог для индексации и сделала редиректы. 

  6. Сейчас роботс выглядит так

     

    User-agent: *

    Disallow: /*route=account/
    Disallow: /*route=affiliate/
    Disallow: /*route=checkout/
    Disallow: /*route=product/search
    Disallow: /admin
    Disallow: /catalog
    Disallow: /download
    Disallow: /system
    Disallow: /*?sort=
    Disallow: /*&sort=
    Disallow: /*?order=
    Disallow: /*&order=
    Disallow: /*?limit=
    Disallow: /*&limit=
    Disallow: /*?filter_name=
    Disallow: /*&filter_name=
    Disallow: /*?filter_sub_category=
    Disallow: /*&filter_sub_category=
    Disallow: /*?filter_description=
    Disallow: /*&filter_description=
    Disallow: /*?tracking=
    Disallow: /*&tracking=
    Host: mama-market.net.ua
     
    User-agent: Yandex
    Disallow: /*route=account/
    Disallow: /*route=affiliate/
    Disallow: /*route=checkout/
    Disallow: /*route=product/search
    Disallow: /admin
    Disallow: /catalog
    Disallow: /download
    Disallow: /system
    Disallow: /*?sort=
    Disallow: /*&sort=
    Disallow: /*?order=
    Disallow: /*&order=
    Disallow: /*?limit=
    Disallow: /*&limit=
    Disallow: /*?filter_name=
    Disallow: /*&filter_name=
    Disallow: /*?filter_sub_category=
    Disallow: /*&filter_sub_category=
    Disallow: /*?filter_description=
    Disallow: /*&filter_description=
    Host: mama-market.net.ua

     

    а ссылка, которую выдал гугл эта 

     

    очень надеюсь на Вашу помощь!

  7. Возник еще один вопрос. Гугл вебмастер выдал вчера предупреждение такого содержания:

     

     

     

    Когда мы проверили несколько URL из вашего файла Sitemap, то обнаружили, что файл robots.txt для сайта блокирует доступ к некоторым URL. Если вы не планируете заблокировать некоторые URL, содержащиеся в файле Sitemap, воспользуйтесь нашим инструментом для анализа файла robots.txt, чтобы убедиться в том, что робот Google может перейти по отправленным вами URL. Все доступные URL будут по-прежнему отправляться

     

    В качестве примера указал действующую страницу на сайте. Как сделать так, чтобы ссылку не блокировали?

    Заранее спасибо!

  8. и где ваши редиректы?

    Ой, извините. Забыла, что удалили их после того, как ничего не получалось. Выглядело так:

    redirect /catalog/11 http://mama-market.n...alog1/tapochki/

    Redirect 301 /catalog/11 http://mama-market.n...alog1/tapochki/
    RewriteCond %{QUERY_STRING} ^catalog/11$
    RewriteRule ^(.*)$ /catalog1/tapochki/? [R=301,L]
    RewriteCond %{QUERY_STRING} ^_route_=catalog/11$
    RewriteRule ^(.*)$ /catalog1/tapochki/? [R=301,L]
  9. покажите весь .htaccess

    # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 
     
    # 2. In your opencart directory rename htaccess.txt to .htaccess.
     
    # For any support issues please visit: http://www.opencart.com
     
    Options +FollowSymlinks
     
    # Prevent Directoy listing 
    Options -Indexes
     
    # Prevent Direct Access to files
    <FilesMatch "\.(tpl|ini|log)">
     Order deny,allow
     Deny from all
    </FilesMatch>
     
    # SEO URL Settings
    RewriteEngine On
    # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 
     
    RewriteBase /
    RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
     
    ### Additional Settings that may need to be enabled for some servers 
    ### Uncomment the commands by removing the # sign in front of it.
    ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
     
    # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
    # php_flag register_globals off
     
    # 2. If your cart has magic quotes enabled, This may work to disable it:
    # php_flag magic_quotes_gpc Off
     
    # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
    # php_value upload_max_filesize 999M
     
    # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value post_max_size 999M
     
    # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_execution_time 200
     
    # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_input_time 200
     
    # 7. disable open_basedir limitations
    # php_admin_value open_basedir none
  10. Здравствуйте! Помоги разобраться как сделать редирект 301 на новый URL с помощью .htaccess

    Делаю так:

     

    redirect /catalog/11 http://mama-market.net.ua/catalog1/tapochki/

    RewriteCond %{QUERY_STRING} ^catalog/11$
    RewriteRule ^(.*)$ /catalog1/tapochki/? [R=301,L]
    RewriteCond %{QUERY_STRING} ^_route_=catalog/11$
    RewriteRule ^(.*)$ /catalog1/tapochki/? [R=301,L]
     
    Но в результате получаю http://mama-market.net.ua/catalog1/tapochki/?_route_=catalog/11 и страницы снова же не существует...
    Как правильно написать, подскажите, пожалуйста?
    Заранее спасибо!
  11. по желанию) можете обращать, но делать с ними ничего не нужно. Старайтесь просто не удалять товар. Если товар более не появится можно поставить ссылки на другие товары-аналоги заодно передать им вес

     

    СПАСИБО!!!

  12. к бабке не ходи - там в роботсе закрыто или path или product_id, а чпу прописать поленились.

     

    Да, было закрыто product_id. СПАСИБО!

     

    И подскажите еще. В ошибках сканирования найдено 296 страниц с ошибкой 404. Этих страниц реально нет уже, они удалены. Как исправить ситуацию, чтоб они исчезли с ошибок?

  13. Здравствуйте!

     
    Такое сообщение выдает в инструментах веб мастера GOOGLE 
     
    Файл Sitemap содержит URL, доступ к которым заблокирован в файле robots.txt.
     
    отправлено на индексацию 350 ссылок.  проблем 189 ссылок
     
    Как исправить?
    Заранее спасибо за ответы!
     
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.