sitemap oluşturma 500 sayfa

samnet

OpenCart-TR
Katılım
22 Nis 2010
Mesajlar
63
Tepkime puanı
0
Puanları
0
Yaş
38
Konum
istanbul
Arkadaşlar belki işinize yarar belki daha önce görmüşsünüzdür..

http://www.xml-sitemaps.com/

500 sayfanızı site haritasını XML olarak bedava çıkartıyor.

google webmasterdan da site haritanıza ekleyin büyük katkısını görürsünüz zamanla.

(Benim de ufakta olsa bi katkım olsun istedim...)
 

pasulyan

OpenCart-TR
Katılım
13 Nis 2010
Mesajlar
11
Tepkime puanı
0
Puanları
0
sevgili samet opencart 1.4.7 içerisinde sitemap uygulaması bulunmakta, fakat bu yöntem altenatif olarak düşünülebilir.
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
Opencart-ın altyapısından Xml olarak alabilirsiniz.. Konuyu inceleyiniz..

http://forum.opencart-tr.com/thread-456-post-4725.html#pid4725
 

ntura

OpenCart-TR
Katılım
23 May 2010
Mesajlar
15
Tepkime puanı
0
Puanları
0
neden güncelleme yapmıyor otomatik olarak.
feed'den bakıyorum ama hala ilk günkü gibi daha yeni 1 ürün daha çıktı
Site mapda öyle

SORUM GÜNCELDİR!!!
 

dangerous34

OpenCart-TR
Katılım
25 May 2010
Mesajlar
31
Tepkime puanı
0
Puanları
0
Benim sitenin sitemap inda böyle bişey yazıyor
Bu nedemek nasıl düzeltirim
This page contains the following errors:

error on line 1 at column 32588: Extra content at the end of the document
Below is a rendering of the page up to the first error.
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
ntura' Alıntı:
neden güncelleme yapmıyor otomatik olarak.
feed'den bakıyorum ama hala ilk günkü gibi daha yeni 1 ürün daha çıktı
Site mapda öyle

SORUM GÜNCELDİR!!!

Güncelleme yapması gerek.. Dosyalarınızda hata vardır bu yüzden güncellemiyordur.. Admin paneldeki Genel ayarlardan hata raporlarını kontrol ediniz.. Hata varsa belirtiniz.. 1.4.4 ve 1.4.6 arası sürümlerde bu şekilde hatalar vardı eğer sürümünüz bunlardansa yükseltme yapmayı deneyiniz..

dangerous34' Alıntı:
Benim sitenin sitemap inda böyle bişey yazıyor
Bu nedemek nasıl düzeltirim
This page contains the following errors:

error on line 1 at column 32588: Extra content at the end of the document
Below is a rendering of the page up to the first error.

catalog/controller/feed/google_sitemap.php Aç..

İçeriği komple değiştirmeyi dene..
Kod:
    <?php
    class ControllerFeedGoogleSitemap extends Controller {
       public function index() {
          if ($this->config->get('google_sitemap_status')) {
             $output  = '<?xml version="1.0" encoding="UTF-8"?>';
             $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
             
             $this->load->model('tool/seo_url');
             
             $this->load->model('catalog/product');
             
             $products = $this->model_catalog_product->getProducts();
             
             foreach ($products as $product) {
                $output .= '<url>';
                $output .= '<loc>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $product['product_id'])) . '</loc>';
                $output .= '<changefreq>weekly</changefreq>';
                $output .= '<priority>1.0</priority>';
                $output .= '</url>';   
             }
             
             $this->load->model('catalog/category');
             
             $categories = $this->model_catalog_category->getCategories();
             
             $output .= $this->getCategories(0);
             
             $this->load->model('catalog/manufacturer');
             
             $manufacturers = $this->model_catalog_manufacturer->getManufacturers();
             
             foreach ($manufacturers as $manufacturer) {
                $output .= '<url>';
                $output .= '<loc>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/manufacturer&manufacturer_id=' . $manufacturer['manufacturer_id'])) . '</loc>';
                $output .= '<changefreq>weekly</changefreq>';
                $output .= '<priority>0.7</priority>';
                $output .= '</url>';   
                
                $products = $this->model_catalog_product->getProductsByManufacturerId($manufacturer['manufacturer_id']);
                
                foreach ($products as $product) {
                   $output .= '<url>';
                   $output .= '<loc>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&manufacturer_id=' . $manufacturer['manufacturer_id'] . '&product_id=' . $product['product_id'])) . '</loc>';
                   $output .= '<changefreq>weekly</changefreq>';
                   $output .= '<priority>1.0</priority>';
                   $output .= '</url>';   
                }         
             }
             
             $this->load->model('catalog/information');
             
             $informations = $this->model_catalog_information->getInformations();
             
             foreach ($informations as $information) {
                $output .= '<url>';
                $output .= '<loc>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/information&information_id=' . $information['information_id'])) . '</loc>';
                $output .= '<changefreq>weekly</changefreq>';
                $output .= '<priority>0.5</priority>';
                $output .= '</url>';   
             }
             
             $output .= '</urlset>';
             
             $this->response->addHeader('Content-Type: application/xml');
             $this->response->setOutput($output);
          }
       }
       
       protected function getCategories($parent_id, $current_path = '') {
          $output = '';
          
          $results = $this->model_catalog_category->getCategories($parent_id);
          
          foreach ($results as $result) {
             if (!$current_path) {
                $new_path = $result['category_id'];
             } else {
                $new_path = $current_path . '_' . $result['category_id'];
             }

             $output .= '<url>';
             $output .= '<loc>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path)) . '</loc>';
             $output .= '<changefreq>weekly</changefreq>';
             $output .= '<priority>0.7</priority>';
             $output .= '</url>';         

             $products = $this->model_catalog_product->getProductsByCategoryId($result['category_id']);
             
             foreach ($products as $product) {
                $output .= '<url>';
                $output .= '<loc>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&path=' . $new_path . '&product_id=' . $product['product_id'])) . '</loc>';
                $output .= '<changefreq>weekly</changefreq>';
                $output .= '<priority>1.0</priority>';
                $output .= '</url>';   
             }   
             
               $output .= $this->getCategories($result['category_id'], $new_path);
          }

          return $output;
       }      
    }
    ?>
 

dangerous34

OpenCart-TR
Katılım
25 May 2010
Mesajlar
31
Tepkime puanı
0
Puanları
0
Mirac dediğin şekilde düzenlememi yaptım hatayı kaldırdık ama google webmasters dan sitemap a baktıgımda şu hatayı veriyor

Çözümleme hatası
Site Haritanızı okuyamadık. Tanıyamadığımız bir giriş içeriyor olabilir. Yeniden göndermeden önce lütfen Site Haritanızı doğrulayın.

Bunu nasıl cüzeriz
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
Tekrar eklemeyi deneyin.. Bazen sorun çıkarabiliyor.. 3-5 denemeden sonra yine hata veriyorsa alttaki konuyu incele..

http://forum.opencart-tr.com/thread-718-post-9717.html#pid9717
 
Üst