Sim64 SEO

Two ways of making Opencart URL’s more constant

Important: BACK UP FIRST AND USE AT YOUR OWN RISK

1. Quick and easy but effects other breadcrumbs

2. Gives more control but more files to edit

1. Go to

catalog > Controller > product

open category.php and find (approx line 393)

'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'])

Replace it with

'href' => $this->url->link('product/product', $url . '&product_id=' . $result['product_id'])

save as category.php and upload.

See if that worked in the category section and if it did
do the same to manufacturer.php

The code is slightly different in manufacturer.php
find (approx line4 67)

'href' => $this->url->link('product/product', $url . '&manufacturer_id=' . $result['manufacturer_id'] . '&product_id=' . $result['product_id'])

and replace with,

'href' => $this->url->link('product/product', $url . '&product_id=' . $result['product_id'])

—————————————–

2. If you don't want to change the breadcrumbs but only the links from
the manufacturer and category sections.

rather than replacing

'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'])

just add another line

'hrefv1seo' => $this->url->link('product/product', $url . '&product_id=' . $result['product_id'])

(remember to add a comma at end of previous line)

Add this extra line to both manufacturer.php and category.php

You will have to edit category.tpl and manufacturer_info.tpl in

catalog > view > theme > yourtheme > template > product

find the bits you want to change, (image and link in the main
grid of products( and replace

php echo $product['href'];

with

php echo $product['hrefv1seo'];

NOTE: NEITHER ARE FULLY TESTED USE AT YOUR OWN RISK


Main Categories; SEO Services, Google, Waffling, News, Web Work, SEO