Page 2 of 2

Re: language in url

Posted: Fri Apr 27, 2012 9:22 am
by arames
I guess this extension "Uber SEO URL" ... on_id=3550

can make your site have this:

also (apparently) the products will be in each language folder and will have the visitor see the page in the specific language.

Creator was kind enough to send us 1 example of site using his extension.

Please if anyone is using Uber SEO with more then 1 language feel free to post it for us to check if this is finally the solution to our problems...

Warm regards,

Re: language in url

Posted: Fri Apr 27, 2012 6:48 pm
by strtfr
Also this extension offers language prefix urls. I have already requested if the developer can make the language prefix available as a separate extension. Both extensions offer much, much, much more than I am searching for, so the costs for the full extensions are not really in my interest.

Re: language in url

Posted: Fri Apr 27, 2012 7:13 pm
by arames


It is a good extension (a bit expensive I admit), but my MAIN problems with Inveo are:

1/ The new SEO URLs are NOT embed / showing in ANY FEEDS
2/ The new SEO URLs are NOT showing in Google xmp sitemaps
3/ The Mulitlanguage folder en/ de/ fr/ will NOT redirect you to the correct language.

Let me explain, if you go to:

it will redirect you to:

UNLESS you have clicked on the Spanish Language Flag BEFORE or AFTER.

Once you click on the Spanish Flag for example, then going to ANYTHING like:

will redirect you to:

So it is NOT good for Google since google can NOT click on the Flag and therefor my dearest they will crawl ONLY:

and NOTHING else.

This extension changes your URLs on the FLY (via htaccess) and therefor will not show in any feeds or OpenCart core files.

I have sent an email to developer and he has promised to make at least an Sitemap with the new URLs so I can submitted to google.

So you see it is not what we are looking for in the matter of changing language when you change folder ...

Hope I could help and wish that someone post his review on any other SEO module here as well

Re: language in url

Posted: Sat Apr 28, 2012 12:45 am
by strtfr
Thanks for the heads up about inveoSEO. Apparently it does what it promises (prefix shop language url) but it really doesn't offer any solution to the SEO language problem. I had expected more for that kind of money. The javascript language selection should at least be replaced, to index pages in multilanguage. I am going to look at it tonight, but I have to learn alot about opencart system.

Re: language in url

Posted: Thu May 17, 2012 1:53 am
by LeoZandvliet
Hey guys,

Clean install

I hope I can be of some help...
I've started trying to make exactly what the topicstarter wants,
I wanted it too :)

I'm absolutely no pro or whatsoever with OpenCart,
but have managed to make the categories as:

Therefor I changed some core files (don't know if that's the way to go, but as said, I'm not an OpenCart expert).

Now I need to do the same for other elements of the shop (products, informational pages, etc).

What I did:
- add column `language_id` INT(10) DEFAULT 1 to table `url_alias`

Changed the following files to take the (current) language_id into account:
- admin\view\template\catalog\category_form.php
- admin\model\catalog\category.php
- catalog\controller\common\seo_url.php
- catalog\controller\module\language.php

After some quick but nasty 'hacking' I tested if the same can be accomplished with products: and yes we can!

But there must be things to be made to check if the first part in the url is the current language or not, and set the language according to it, and that kind of stuff. But I don't know what the best place is to do that kind of stuff.
Also I don't know if developers of OpenCart can help me out?

There are also a lot more things missing in general, like a 'url_alias_history' table. Mostly, I experience at companies, a url will change sometimes. But you don't want to catch all allready indexed urls manually!

I couldn't upload the changed files because they were rejected, how can we help eachother out here? (I want assistance with coding too! )

Best regards,

Leo Zandvliet

Re: language in url

Posted: Fri May 18, 2012 10:33 pm
by LeoZandvliet
Okay, things are looking good so far:
- you can give products an url per language
- you can give categories an url per language
- you can switch language, and still be redirected to the correct page in the other language
- if you dont have the languageas first part of the url, it will be added and you will be redirected

To do:
- give information pages an url per language
- make different languages accessible for search engines

OpenCart request:
- make an url history, if an url changes the allready indexed urls must be catched and redirected

Re: language in url

Posted: Mon Mar 11, 2013 4:26 am
by _fD_

are there some news on this solution?

Re: language in url

Posted: Fri Mar 29, 2013 3:19 am
by LeoZandvliet
Hey _fd_

I was developing this to make a good basis for a new customer,
but the customer chose for some cheap (not seo friendly) other solution.
I then never finnished this completely I think.
Per coincidence I checked this topic again to see your post, I'm not very active here last year :)

Re: language in url

Posted: Thu Jun 01, 2017 5:52 pm
by malam
hi, any solution for this problem to have the language in the url?

Re: language in url

Posted: Thu Jun 01, 2017 6:37 pm

Re: language in url

Posted: Mon Jun 05, 2017 11:27 pm
by JNeuhoff
malam wrote:
Thu Jun 01, 2017 5:52 pm
hi, any solution for this problem to have the language in the url?
You may want to take a look at our Multilingual SEO package which includes the language as part of the URL. Recommended OpenCart version or later.

Re: language in url

Posted: Thu Nov 14, 2019 8:17 pm
by Sanuich
Fakkin Shettt

http://yourdomain/langcode/request-string - if language is not default
http://yourdomain/request-string - for default frontend language

for multilanguage shop only!

v 2.1


line 112

Code: Select all

//Set language from URL
$languages = array();
$query = $db->query("SELECT * FROM `" . DB_PREFIX . "language` WHERE status = '1'");
foreach ($query->rows as $result) {
	$languages[$result['code']] = $result;
$langdata = $config->get('config_language');
$code = '';
	$_route = explode('/', $_GET['_route_']);	

		//if lang in url and lang not default
				//1 - set lang
				$code = $_route[0];
				$urilang = $code.'/';
			else $code = $langdata;
			//2 - modyfy _route_ or delete
			if(count($_route)==1 || (isset($_route[1]) && $_route[1]=='index.php')) 
			if(isset($_route[1]) && $_route[1]!='index.php')
				$_GET['_route_'] = str_ireplace($_route[0].'/', '' , $_GET['_route_']);
		}// else set default
		else $code = $langdata;
	//}else $code = $langdata;
} else {
	$code = $langdata;
maybe if default lang code in url should reload page without lang
but it's up to user

BLOG Article link - ... erion-2-1/

just write me in any questions
telegram @sanuich