Post by zch0071 » Tue Sep 16, 2014 3:56 pm

How to delete the categoryURL of the product URL?
For example:
Change
http://www.xxx.com/category1/product1 To http://www.xxx.com/product1
http://www.xxx.com/category2/category2-1/product2 To http://www.xxx.com/product2

In seo_url.php find

Code: Select all

$url .= '/' . $query->row['keyword']; 
to

Code: Select all

$url = '/' . $query->row['keyword']; 
so the products URL won't include category URL. Although it will result in breadcrumb navigation missing, but it can also reduce duplication of URL addresses.

How can I modify in order to remove the category URL and guarantee no missing breadcrumbs navigation?

New member

Posts

Joined
Sun Sep 20, 2009 12:10 am

Post by Johnathan » Tue Sep 16, 2014 10:21 pm

Breadcrumbs are based on the URL, so you'd need to modify a bunch of core functionality to get it working without that component of the URL. It's probably beyond what someone would lead you through on the forum, so you may need to hire someone to do it for you.

If you need to find a developer, I recommend you post a request in the OpenCart "Commercial Support" forum (forum.opencart.com/viewforum.php?f=88), which is checked by a number of OpenCart developers. You can also try checking out the OpenCart "Partners" area (www.opencart.com/index.php?route=partner/partner).

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: Google [Bot] and 135 guests