Post by arames » Fri Apr 27, 2012 9:22 am

I guess this extension "Uber SEO URL"
http://www.opencart.com/index.php?route ... on_id=3550

can make your site have this:

http://www.domain.com/es/catalog
http://www.domain.com/fr/catalog
http://www.domain.com/it/catalog


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,
Arames

New member

Posts

Joined
Fri Mar 09, 2012 8:27 pm

Post by strtfr » Fri Apr 27, 2012 6:48 pm

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.

http://www.inveostore.com/magic-seo-urls-for-opencart-9

New member

Posts

Joined
Wed Dec 21, 2011 6:15 pm

Post by arames » Fri Apr 27, 2012 7:13 pm

Hi,

I HAVE InveoSEO.

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:
http://www.domain.com/es/catalog

it will redirect you to:
http://www.domain.com/en/catalog

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:
http://www.domain.com/fr/catalog
or
http://www.domain.com/de/catalog

will redirect you to:
http://www.domain.com/es/catalog


So it is NOT good for Google since google can NOT click on the Flag and therefor my dearest they will crawl ONLY:
http://www.domain.com/en/catalog

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

New member

Posts

Joined
Fri Mar 09, 2012 8:27 pm

Post by strtfr » Sat Apr 28, 2012 12:45 am

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.

New member

Posts

Joined
Wed Dec 21, 2011 6:15 pm

Post by LeoZandvliet » Thu May 17, 2012 1:53 am

Hey guys,

<edit>
Version 1.5.2.1
Clean install
</edit>

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:
- http://www.shop.com/en/english-category
- http://www.shop.com/nl/dutch-category

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

I don't mass-sell webshops,
but knowledge and advice.
www.zandvlietwebconsultancy.nl


Newbie

Posts

Joined
Thu May 17, 2012 1:34 am
Location - Netherlands

Post by LeoZandvliet » Fri May 18, 2012 10:33 pm

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

I don't mass-sell webshops,
but knowledge and advice.
www.zandvlietwebconsultancy.nl


Newbie

Posts

Joined
Thu May 17, 2012 1:34 am
Location - Netherlands

Post by _fD_ » Mon Mar 11, 2013 4:26 am

Hello,

are there some news on this solution?

OpenCart is great!


User avatar
Newbie

Posts

Joined
Mon Jun 25, 2012 8:26 pm
Location - Switzerland

Post by LeoZandvliet » Fri Mar 29, 2013 3:19 am

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 :)

I don't mass-sell webshops,
but knowledge and advice.
www.zandvlietwebconsultancy.nl


Newbie

Posts

Joined
Thu May 17, 2012 1:34 am
Location - Netherlands

Post by malam » Thu Jun 01, 2017 5:52 pm

hi, any solution for this problem to have the language in the url?

New member

Posts

Joined
Thu Jan 14, 2016 5:30 am

Post by IP_CAM » Thu Jun 01, 2017 6:37 pm


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 JNeuhoff » Mon Jun 05, 2017 11:27 pm

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 2.2.0.0 or later.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Sanuich » Thu Nov 14, 2019 8:17 pm

Fakkin Shettt

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

for multilanguage shop only!

v 2.1

index.php

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 = '';
if(isset($_GET['_route_']))
{
	$_route = explode('/', $_GET['_route_']);	


		//if lang in url and lang not default
		if(isset($languages[$_route[0]]))
		{		
			if($_route[0]!=$langdata)
			{
				//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')) 
			{
				unset($_GET['_route_']);
			}
			
			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 - https://sensej.org/ocstore-how-to-set-l ... erion-2-1/




just write me in any questions
telegram @sanuich

Newbie

Posts

Joined
Tue Nov 12, 2019 7:41 pm
Who is online

Users browsing this forum: No registered users and 23 guests