I want to remove category and sub-category name from the product URL in the opencart. I have made changes in seo_url.php file. Where I have replaced
$url .= '/' . $query->row['keyword'];
with
$url = '/' . $query->row['keyword'];
But still the url is not changed. Can any one suggest me what to do. I am using opencart version 2.0.3.1
2
Answers
are you sure you’ve replaced all?
in seo_url.php file there is 3 matches.
Replace all occurrence of
with
to remove category from product url.
there are only two occurence of it