Post by funky123 » Sat Oct 20, 2018 8:04 pm

hi everyone how everyone doing im new here i trying to learn but opencart 3 seem really hard to learn
does any one know how to remove category / subcatergory name from products urls ???
i need to keep my urls really short and not show my catergorys hope someone can help

Newbie

Posts

Joined
Sat May 12, 2018 10:03 pm

Post by opencart.my » Sat Oct 20, 2018 9:03 pm

Hi funky123, welcome!

If you have enabled SEO URLs you could have short URLs to your store product.

Example: http://yourstore.com/ipod-classic

If someone click on your product from a category page, the SEO URL will include the category's SEO URL as well:
http://yourstore.com/mp3-players/ipod-classic

But you could always omit the category's SEO URL and use http://yourstore.com/ipod-classic or share it on social media site for anyone to access your store product.

Developing Quality OpenCart Extensions since 2011. View my Extensions.


User avatar
New member

Posts

Joined
Mon Jan 22, 2018 6:03 pm


Post by khnaz35 » Sat Oct 20, 2018 9:11 pm

funky123 wrote:
Sat Oct 20, 2018 8:04 pm
hi everyone how everyone doing im new here i trying to learn but opencart 3 seem really hard to learn
does any one know how to remove category / subcatergory name from products urls ???
i need to keep my urls really short and not show my catergorys hope someone can help
Use Seo URL, enable from admin panel system /setting

On product page also use the Seo url name which you want to show

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by funky123 » Sat Oct 20, 2018 9:38 pm

yes i got seo url turned on but what im after doing is getting rid of http://yourstore.com/mp3-players/ipod-classic
so it would read http://yourstore.com/ipod-classic

also would like to know how to get rid of http://yourstore.com/electrical/mp3-pla ... od-classic
how i get rid of electrical/mp3-players so it still read http://yourstore.com/ipod-classic

Newbie

Posts

Joined
Sat May 12, 2018 10:03 pm

Post by opencart.my » Sat Oct 20, 2018 9:45 pm

The only way is to not set any SEO keyword for your categories. Leave it blank so that all products under that category will have URL without category name.

Developing Quality OpenCart Extensions since 2011. View my Extensions.


User avatar
New member

Posts

Joined
Mon Jan 22, 2018 6:03 pm


Post by IP_CAM » Sun Oct 21, 2018 8:27 am

Strip parent categories from url to avoid duplication
https://www.opencart.com/index.php?rout ... n_id=27744
---
Well, the Code used is the same, in v.2 + v.3 Versions,
only the SEARCH Path is a little different, it changed from:
catalog/controller/seo_url.php
in v.3.x Versions to:
catalog/controller/startup/seo_url.php
So, change the Path in the Extension, to make it look like:
<file path="catalog/controller/startup/seo_url.php">
to so make this work as OcMod. It's also shown on the Ext.Page,
on how to use it as VqMod.
It does NOT fully remove all categories, but only shows the first one.
Good Luck! ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by customrob » Tue Oct 23, 2018 9:52 pm

the guy that makes this module updated it today

Newbie

Posts

Joined
Sun Jun 10, 2018 11:17 pm

Post by Jeff600 » Fri Apr 16, 2021 7:57 pm

Hi, i need exact answer i.e

We have currently as domain.com/category/sub-category/product-name , We want to display only domain.com/product-name for pproduct page urls, how to do this? please help and we have 2.2 open cart

Newbie

Posts

Joined
Fri Apr 16, 2021 6:41 pm

Post by straightlight » Fri Apr 16, 2021 8:23 pm

Jeff600 wrote:
Fri Apr 16, 2021 7:57 pm
Hi, i need exact answer i.e

We have currently as domain.com/category/sub-category/product-name , We want to display only domain.com/product-name for pproduct page urls, how to do this? please help and we have 2.2 open cart
Posted in the wrong forum section.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: moreduff, Semrush [Bot] and 265 guests