Post by promofire » Sat Oct 15, 2011 5:47 am

How can I remove the pages made for Manufacturers from my sitemap in 1.4.9.3? I don't want those getting listed.

Thanks
Last edited by promofire on Mon Oct 17, 2011 10:23 pm, edited 1 time in total.

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am

Post by uksitebuilder » Sat Oct 15, 2011 3:48 pm

Find and delete the following from catalog/controller/feed/google_sitemap.php

Code: Select all

		 $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>';   
			}         
		 }

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by promofire » Mon Oct 17, 2011 10:23 pm

Thanks!

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am
Who is online

Users browsing this forum: No registered users and 35 guests