hallo smuaa balik lg dengan sedikit tips tentang OpenCart, kali ini saya mau membahas tentang sitemap.xml di Opencart, mungkin kalian smua sudah paham apa itu sitemap.xml ? nah sekarang sy mau kasih sedikit tips untuk yg menggunakan Opencart supaya bisa menambahkan image sitemap.xml di Opencart, pastinya OC teranyar yaah , soalnya saya pakai yg baru ini , berikut : - Buka file catalog > controller > feed > google_sitemap.php , berikut isi nya tepatnya di line 6 sampai 18 : Code: $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'; $this->load->model('catalog/product'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; } ganti dengan berikut : Code: $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; $this->load->model('catalog/product'); $this->load->model('tool/image'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { if ($product['image']) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>1.0</priority>'; $output .= '<image:image>'; $output .= '<image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')) . '</image:loc>'; $output .= '<image:caption>' . $product['name'] . '</image:caption>'; $output .= '<image:title>' . $product['name'] . '</image:title>'; $output .= '</image:image>'; $output .= '</url>'; } } dan Untuk Hasilnya akan menjadi seperti ini per-product nya si sitemap.xml : Code: <url> <loc>http://contoh.com/url-product</loc> <changefreq>weekly</changefreq> <priority>1.0</priority> <image:image> <image:loc>http://contoh.com/image/cache/data/product-keren/product-500x500.jpg</image:loc> <image:caption>Product Kereen</image:caption> <image:title>Product Kereen</image:title> </image:image> </url> nah dengan begitu di setiap url yg kalian berikan untuk web master tool akan ada image untuk product nya semoga artikel ini bermanfaat berasal dari https://github.com/fahmi182/opencart/commit/b221993c23b57918593355fcc798cb0af0be3008 (kebetulan saya pull request di github OC supaya dimasukan untuk OC nya) smoga saja dimasukkan Fahmi, Apr 6, 2013 #1 Ardilas Super Level Joined: Feb 18, 2013 Messages: 4,243 Likes Received: 317 Trophy Points: 83 Google+: Author Wow Openchart. Apa guna Wow Openchart. Apa guna gambar dalam sitemap? *pingin tau segalanya, tapi otak gak mendukung. Ardilas, Apr 7, 2013 #2 Fahmi Newbie Joined: Dec 5, 2012 Messages: 1,719 Likes Received: 159 Trophy Points: 63 Google+: Author image sitemap mungkin ini bisa membantu http://support.google.com/webmasters/bin/answer.py?hl=en&answer=178636 Fahmi, Apr 7, 2013 #3 samuel Member Joined: Feb 5, 2013 Messages: 478 Likes Received: 15 Trophy Points: 18 Google+: Author kalo opencart harus buka file kalo opencart harus buka file php nya ya untuk menambahkan sitemap , kalo drupal kan cukup pake module samuel, Apr 7, 2013 #4 Fahmi Newbie Joined: Dec 5, 2012 Messages: 1,719 Likes Received: 159 Trophy Points: 63 Google+: Author samuel wrote: beda kali sama drupal,, hehe drupal gitu loch eh tapi OC punya ini http://code.google.com/p/vqmod/ Fahmi, Apr 8, 2013 #5 AhmadWafa Member Joined: Oct 2, 2013 Messages: 850 Likes Received: 15 Trophy Points: 18 Google+: Author Nyimak dulu mas gan, soalnya Nyimak dulu mas gan, soalnya masih belum terlalu dewa ilmu saya AhmadWafa, Dec 29, 2013 #6 Grant Verleend Active Member Joined: Sep 10, 2014 Messages: 1,234 Likes Received: 35 Trophy Points: 48 Google+: Author Mau Tanya Sitmap XML Kalau terjadi kesalahan pada waktu input sitemap.xml di google web master gimana solusinya den @Fahmi Grant Verleend, Nov 20, 2014 #7 (You must log in or sign up to reply here.) Show Ignored Content Share This Page Tweet Log in with Facebook Log in with Twitter Your name or email address: Do you already have an account? No, create an account now. Yes, my password is: Forgot your password? Stay logged in
Wow Openchart. Apa guna Wow Openchart. Apa guna gambar dalam sitemap? *pingin tau segalanya, tapi otak gak mendukung.
image sitemap mungkin ini bisa membantu http://support.google.com/webmasters/bin/answer.py?hl=en&answer=178636
kalo opencart harus buka file kalo opencart harus buka file php nya ya untuk menambahkan sitemap , kalo drupal kan cukup pake module
samuel wrote: beda kali sama drupal,, hehe drupal gitu loch eh tapi OC punya ini http://code.google.com/p/vqmod/
Mau Tanya Sitmap XML Kalau terjadi kesalahan pada waktu input sitemap.xml di google web master gimana solusinya den @Fahmi