Oh I figure it out today, there're 2 seo_url.phpkazihaha wrote:not work for my opencart 2.0.3.1, I still seeJohnathan wrote:IN:REPLACE THE FIRST INSTANCE OF:Code: Select all
1.4.x: /catalog/model/tool/seo_url.php 1.5.x: /catalog/controller/common/seo_url.php
WITH:Code: Select all
$url .= '/' . $query->row['keyword'];
If you want sub-categories to not show their parent categories in the URL, then replace both instances of that line with the replacement.Code: Select all
$url = '/' . $query->row['keyword'];
More tutorials are available at OpenCartX.com/tutorials
localhost/journal/may-photocopy/canon/canon-ir-2002n.html -> when I access "may-photocopy", then "canon", then "canon-ir-2002"
http://localhost/journal/canon-ir-2002n.html -> when I access this "canon-ir-2002n" from the home page.
Please help me.
1 - catalog\controller\common\seo_url.php
2 - system\modification\catalog\controller\common\seo_url.php