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

Always help others it's always come back, give and receive :)


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm

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

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free Opencart LIGHT v.1.5.6.5_rc Software
can be seen in Action here: http://www.bigmax.ch
---
930+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


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
Who is online

Users browsing this forum: No registered users and 24 guests