Post by bernat » Sat Feb 20, 2016 2:54 am

Hello,
Hope you guys can help me, I'm an c# .net developer, I donk know much about PHP...

I have this extension - http://www.opencart.com/index.php?route ... n_id=23213 - It work great! But my client complained about the Manufacturers link. It goes like this: mystore.com/manufacturer-m1, mystore.com/manufacturer-m2. He asked me to loose the -m1, -m2, -m3...
Is there a way to edit this extension so I can remove this from the manufacturer links?

Thanks in advance!

Newbie

Posts

Joined
Sat Feb 20, 2016 2:40 am

Post by bernat » Wed Mar 02, 2016 4:35 am

bump! Anyone?

Newbie

Posts

Joined
Sat Feb 20, 2016 2:40 am

Post by artcore » Wed Mar 02, 2016 5:28 am

It looks like they append the id to the keyword. Do a string search for manufacturer_id in the xml file and remove it.
Possibly 'm-'. somewhere in front of it.
You'd have to change the oc_url_alias table as well.
If the core system is unafected you might be good by only removing the m-xx from said table, keyword column.

Hopefully you find it useful

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by OSWorX » Wed Mar 02, 2016 6:36 am

That will not work (only removing m1...mx) because this is a 'shortcut' to the real manufacturers name!
Otherwise the database will not find the real entry.

m(x) stand always for a manufacturer (apple = 1, samsung = 2, etc.)

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by artcore » Wed Mar 02, 2016 3:02 pm

That's why I said, remove it from the db
If the extension didn't fiddle with seo_url.php it should work.

url_alias_id | query | keyword
-------------| manufacturer_id=20 | apple-m20

apple-m20 might as well be 'i-like-icecream' so removing -m20 has no effect other than the desired effect.

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 1 guest