OpenCart SEO fix#1 (sitemap.xml)

OpenCart неплохой движёк для интернет магазина. Но понятное дело нужно малёха допиливать. SEO не исключение. Привожу небольшой фикс для встроенного sitemap.xml. Так как тот выводит дубли (идентичное содержимое, но с разными адресами), чего поисковые системы ОЧЕНЬ не любят…

Находим файлик catalog\controller\feed\google_sitemap.php и комментим следующие строки:

# $output .= $this->getCategories(0);

 

и

/*
#   $this->load->model(‘catalog/manufacturer’);
#
#   $manufacturers = $this->model_catalog_manufacturer->getManufacturers();
#
#   foreach ($manufacturers as $manufacturer) {
#   $output .= ‘<url>’;
#   $output .= ‘<loc>’ . $this->url->link(‘product/manufacturer/product’, ‘manufacturer_id=’ . $manufacturer[‘manufacturer_id’]) . ‘</loc>’;
#   $output .= ‘<changefreq>weekly</changefreq>’;
#   $output .= ‘<priority>0.7</priority>’;
#   $output .= ‘</url>’;
#
#   $products = $this->model_catalog_product->getProducts(array(‘filter_manufacturer_id’ => $manufacturer[‘manufacturer_id’]));
#
#   foreach ($products as $product) {
#      $output .= ‘<url>’;
#      $output .= ‘<loc>’ . $this->url->link(‘product/product’, ‘manufacturer_id=’ . $manufacturer[‘manufacturer_id’] . ‘&product_id=’ . $product[‘product_id’]) . ‘</loc>’;
#      $output .= ‘<changefreq>weekly</changefreq>’;
#      $output .= ‘<priority>1.0</priority>’;
#      $output .= ‘</url>’;
#   }
#   }
*/

Advertisements

About ОТЕЦъ

верю в сказки
This entry was posted in seo and tagged , , . Bookmark the permalink.

2 Responses to OpenCart SEO fix#1 (sitemap.xml)

  1. laptop akku says:

    Excellent way of telling, and pleasant piece of writing to take data
    about my presentation focus, which i am going to present in
    university.

  2. What’s up to all, how is the whole thing, I think every one is getting more from this site, and your views are fastidious designed for new users.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s