Not sure if anyone has noticed yet, but open cart allows the doubling up (well N up) of the same product pages.
err, here is an example:
A product may live here:
http://www.domain.co.uk/Alicia-Feetham.html
http://www.domain.co.uk/category/Alicia-Feetham.html
http://www.domain.co.uk/category/sub-ca ... etham.html
Spotted the issue yet? Google won't like you for this because you are duplicating content (just like not redirecting http://domain.ext to http://www.domain.ext)
So the simple method of resolving this is by not accounting the for the category in the URL.
./catalog/controller/product/category.php
Around line: 142
Code: Select all
$this->data['products'][] = array(
'name' => $result['name'],
'model' => $result['model'],
'rating' => $rating,
'stars' => sprintf($this->language->get('text_stars'), $rating),
'thumb' => image_resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),
'price' => $price,
'special' => $special,
'href' => $this->model_tool_seo_url->rewrite($this->url->http('product/product&path=' . $this->request->get['path'] . '&product_id=' . $result['product_id']))
);
Code: Select all
'href' => $this->model_tool_seo_url->rewrite($this->url->http('product/product&product_id=' . $result['product_id']))
Matt