Post by billkou » Mon Mar 07, 2016 1:03 am

Hello people :)

I'll jump right to the point, since I've done a lot of reading here in the forums and elsewhere on the Internet but haven't found anything solid yet ( or at least that i could apply it to my situation )

I have two domains ( domain.eu and domain.nl ).
I've installed Opencart 2.1.0.2 with Journal theme and with two languages ( English & Dutch ), along with some paid plugins and everything worked/works fine.

Content is both English & Dutch, although I haven't finished the Dutch data entry completely.

I also setup the multistore feature and it seems to be working fine, having the domain.nl website as the non-default one.

What I noticed though, is the following :
For example, in the news / blog extension, if I want to publish something, either on the EU or the NL website, I need to input both the English and Dutch version of that text. Which is something I do not want.

I would like for the EU domain to have ONLY the English language and be its default one, and the NL domain to work with the Dutch language only without having the EU one "inside".

Now I'm "left" with two websites that have two ( of the same ) languages each. This is not functional for my scenario because if I wanted to have multiple languages on either website I'd go for the multilingual option from the start. For redirection purposes, after this matter is solved I could have a custom language banner on top to make the URL change to the desired domain.

The current setup is inconvenient because the content won't be always the same between the two shops. The blog extension for example, won't have the same content in both sites. Sometimes a blog post will be written only in Dutch or only in English, and in different time periods with each other ( if it's the same post ) so there's no reason to be obligated to have the content written in both languages every time I want to publish something.

Has anyone experienced this issue before? Maybe it's something ultra-easy and I'm missing it because I'm desperately trying to find the solution when it could be right in front of my eyes for the whole time :laugh:

If you have another suggestion to make for my setup, or even a different approach on the issue, I'm all ears :)

Thanks a lot in advance! O0

New member

Posts

Joined
Mon Sep 02, 2013 6:41 am

Post by billkou » Mon Mar 07, 2016 5:27 am

Update : It seems that in the past, a few users have come across this issue, such as this one here :

viewtopic.php?f=20&t=37899&start=40#p500171

But I haven't read of any solutions, yet. Even the user mentioned above, stated that she solved it but didn't share how it was done.

I contacted her and will share with the forum any information that could be useful.

At the moment I'm feeling like the guy in the attached pic, LOL
wisdom_of_the_ancients.png

wisdom_of_the_ancients.png (27.27 KiB) Viewed 5379 times

P.S. I really think this is a bit stubborn of Opencart's multistore feature. I mean, why would I need 10 stores simultaneously translated in 10 different languages but not be able to have 10 stores with ONE language per store? Doesn't make sense really.

New member

Posts

Joined
Mon Sep 02, 2013 6:41 am

Post by labeshops » Mon Mar 07, 2016 8:56 am

Seems like I've posted this multiple times the last week and no one ever seems to see the other posts...

Edit your settings for whatever store you want in whatever language (and/or currency). Change it's default to the language (and/or currency) you want that store to be in. Remove or hide that stores language (and/or currency) selector in the heading so people cannot change the view in the front end and done.

You don't have to fill out both languages for everything as far as I know - I don't use multiple languages myself, but I believe you can fill out x in dutch and assign it to only the dutch store, fill out y in english and assign it only to the english store. If something is required for the other language, you could just do simple dummy text like "alkalkjdskljlkj" since no one will ever see it if you do the above and hide the language selector on the store. No need to write the entire thing in a language box you won't ever display in the front end.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Burt65 » Mon Mar 07, 2016 9:31 am

In the Journal Blog the last tag is to pick which store is the blog for. Why can't you do utilize that and also use the recommendation above from labeshops to only put a scribble for the language you don't need to show. Or you could just make a text template that says that the blog is not available in x language for that particular store...
P.S. I really think this is a bit stubborn of Opencart's multistore feature. I mean, why would I need 10 stores simultaneously translated in 10 different languages but not be able to have 10 stores with ONE language per store? Doesn't make sense really.
Well, you are supposed to let the customer pick which language they want to use. In the end, even if you had only one language per store, you will still need to edit each one of them for each store. The idea of OC multistore is to share the load by giving you the choice of what goes where, not to make individual shops separate by languages . I don't know why you don't want let your customer pick their language, but as far as the blog, you can pick for which store is allocated. Again Opencart doesn't know which language you are going to use as default, therefore it gives you the options. What you need is a customisation for your particular requirement that are not necessarily mine or Bob or Jane requirements.
Last edited by Burt65 on Tue Mar 08, 2016 6:07 pm, edited 1 time in total.

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by billkou » Mon Mar 07, 2016 6:25 pm

labeshops wrote:Seems like I've posted this multiple times the last week and no one ever seems to see the other posts...

Edit your settings for whatever store you want in whatever language (and/or currency). Change it's default to the language (and/or currency) you want that store to be in. Remove or hide that stores language (and/or currency) selector in the heading so people cannot change the view in the front end and done.

You don't have to fill out both languages for everything as far as I know - I don't use multiple languages myself, but I believe you can fill out x in dutch and assign it to only the dutch store, fill out y in english and assign it only to the english store. If something is required for the other language, you could just do simple dummy text like "alkalkjdskljlkj" since no one will ever see it if you do the above and hide the language selector on the store. No need to write the entire thing in a language box you won't ever display in the front end.
Hello :)

I've seen your posts and your efforts on Opencart's multistore feature.

But what you are suggesting doesn't solve the problem, it actually creates a lot more. Because even though the language selector will be absent or at least non visible to the client/guest, that doesn't mean that a link isn't generated from the second/third/fourth language and indexed by Google.

And to add to that, the REAL link ( the foreign language link with the actual content ) is generated as well on the second store, leaving the English and all the other languages empty, messing up with Google's crawler and eventually with the rankings due to duplicate content and whatever else.

So even if I put dummy text inside those description/title boxes, that doesn't mean that content and URL's aren't being generated by Opencart. A scenario like this would crush any SEO campaign or chance of having serious and consistent results for any search engine ( on a local and/or global level ).

Also, while using a SEO plugin ( Opencart SEO pack Pro, or any other serious SEO plugin package ) we are encouraged to use Google's rel=alternate tag to show Google that there's another version of that link in a another language, specifying the link AND the language. Which is the way to go for situations where multiple languages are involved, but practically the same products but with different ( = translated ) content. This would be a disaster, letting Google know that we have one "good" link per language and then links with dummy content in any other language, but also having translated links with translated content in any language which in turn have the rel=alternate tag to all the other links ( previously "good ones" with original content ) showing Google that for every piece of content/URL we have one good version of it and one "bad".
Burt65 wrote:In the Journal Blog the last tag is to pick which store is the blog for. Why can't you do utilize that and also use the recommendation above from labeshops to only put a scribble for the language you don't need to show. Or you could just make a text template that says that the blog is not available in x language for that particular store...
Even though I answered above, this solution is not something I would ever do, because treating your users in a way that discriminates them in some sort, is not always good. And on top of that, you have generated URL's with content that says "The blog is not available in your language", for every blog post that you can't/don't want/havent' had the time to translate. It's really not good for both the users and SEO wise.

Burt65 wrote:Well, you are supposed to let the customer pick which language they want to use. In the end, even if you had only one language per store, you will still need to edit each one of them for each store. The idea of OC multistore is to share the load by giving you the choice of what goes where, not to make individual shops separate by languages . I don't know why you don't want let your customer pick their language, but as far as the blog, you can pick for which store is allocated. Again Opencart doesn't know which language you are going to use as default, therefore it gives you the options. What you need is a customisation for your particular requirement that are not necessarily mine or Bob or Jane requirements.
The bold text comes from where? I think it's an assumption you made based on your needs? Such as my assumption based on my needs, I guess :)

So that brings us to a point where there are lots of users with different needs and there are many users wanting something that other users don't. Why not have it both ways, so you can satisfy both needs?

I don't want my customers pick their own language because it's simply useless in my multistore scenario. A Dutch user will never want to see English content, whereas a European user would never want to see the Dutch language because both of them would be confused.

Opencart could have a per store language selection so that all this could be avoided. User and SEO wise it would be the best option I think.

I will probably setup two different stores on each domain, each with their own language, if this multistore experiment doesn't go as planned. There's no other way really, but I'll wait for a while until there's a possible solution.

Thanks a lot for your replies!

New member

Posts

Joined
Mon Sep 02, 2013 6:41 am

Post by Cleo » Mon Mar 07, 2016 7:33 pm

@billkou

I posted what I did in my thread: viewtopic.php?f=20&t=37899&start=40#p500171

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by Burt65 » Tue Mar 08, 2016 1:56 pm

billkou wrote:
The bold text comes from where? I think it's an assumption you made based on your needs? Such as my assumption based on my needs, I guess :)

I don't want my customers pick their own language because it's simply useless in my multistore scenario. A Dutch user will never want to see English content, whereas a European user would never want to see the Dutch language because both of them would be confused.

Thanks a lot for your replies!
Hi billkou, the bold text was to point out that Opencard Default does not have separate language for separate store. Not really an assumption, otherwise you wouldn't be here asking how to change that.

It is your choice of how you want to treat your customers. You don't want to let them pick their own language?
What ever rocks your boat...

I'm struggling a bit with your concept of a Dutch been different from an European, and I also don't understand what has it got to do been discriminatory, with having a blog where you let your customers know that the blog is not available in a particular language. Are you saying that you blog will be in every possible language? Don't think so...So is this discriminating? Big word for such a small problem.
Opencart could have a per store language selection so that all this could be avoided
I normally tend not to look at a horse mouth, when it is given to me for free.
---------------------------------------------------------------------------------------------------------------------

Thanks Cleo for providing the link

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by labeshops » Tue Mar 08, 2016 8:32 pm

There are ways to keep google from indexing certain links, robots.txt for instance. However, I'm going to step out of this thread and let those who have experience using multiple languages with opencart step in to help you more.

Good luck with your stores.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Cleo » Fri Mar 11, 2016 1:23 pm

@Burt65

My pleasure :)

I thought that billkou would appreciate that I posted my solution since he emailed me and asked for it but apparently it is not what he wanted or didn't bother to look at it! Anyway maybe it will help someone else!

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by burrito » Fri Mar 11, 2016 2:54 pm

i just released an extension that allows you to set languages for each store, so you can set english and dutch for one store, and english only for another, dutch only for a third, etc.
find it here:
Multi-store languages
Multi-store currencies
Multi-store vouchers
Multi-store coupons

I'm also finishing up Multi-store Order Totals, but I'm still testing that one.

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by Burt65 » Fri Mar 11, 2016 3:32 pm

burrito wrote:i just released an extension that allows you to set languages for each store, so you can set english and dutch for one store, and english only for another, dutch only for a third, etc.
find it here:
Multi-store languages
Multi-store currencies
Multi-store vouchers
Multi-store coupons

I'm also finishing up Multi-store Order Totals, but I'm still testing that one.
Excellente. This should take care of the problem.

Thanks burrito

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by before » Wed May 19, 2021 4:29 pm

Hi,

Everyone. I am looking for some help.

I have already made some modification that was described in this post:
viewtopic.php?f=202&t=202918

I have multiple domains and I set up multi-store already. I have multiple domains and languages
domain.hu as default store and hungarian as default language
domain.de --> german - store_id: 2
domain.at --> also german store_id: 4
domain.fr --> french - store_id: 1
domain.sk --> slovak store_id: 3
Czech only as language
English only as language

I want to achieve a store change when I set a certain URL which makes a language switch thanks to the previous mod. Also I want to have these store changes when I choose a language from the store front language switch dropdown.
german --> domain.de
french -->domain.fr
slovak or czech --> domain.sk
hungarian --> default store domain.hu

I checked and did not find any extension that would do any similar action.

I have started to pick up PHP so sooner or later I will get there: so far I have this code put together in seo_url.php

Code: Select all

switch ($code){
	case "fr-fr":
$this->config->set('config_store_id', 1);
		break;
	case "de-de":
$this->config->set('config_store_id', 2);
		break;
	case "sk-sk":
$this->config->set('config_store_id', 3);
		break;   
	case "de-at":
$this->config->set('config_store_id', 4);
		break;
	case "en-gb":
//do nothing
		break;
	case "cs-cz":
$this->config->set('config_store_id', 3);
		break;
case "hu-hu":
$this->config->set('config_store_id', 0);
$this->config->set('config_url', HTTP_SERVER);
$this->config->set('config_ssl', HTTPS_SERVER);
		break;
	default:
		//else default store
$this->config->set('config_store_id', 0);
$this->config->set('config_url', HTTP_SERVER);
$this->config->set('config_ssl', HTTPS_SERVER);
		break;
}
I appreciate any help or contribution.

Newbie

Posts

Joined
Mon May 10, 2021 4:51 pm

Post by DigitCart » Wed May 19, 2021 4:47 pm

Hi
Please check this extension of mine:
https://www.opencart.com/index.php?rout ... n_id=40985

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by before » Wed May 19, 2021 5:10 pm

Hi,

Thanks for the advise, but this extension has a completely different function from what I wrote.
I do not need to limit any language or currency at my stores.

Newbie

Posts

Joined
Mon May 10, 2021 4:51 pm

Post by DigitCart » Wed May 19, 2021 5:21 pm

before wrote:
Wed May 19, 2021 5:10 pm
Hi,

Thanks for the advise, but this extension has a completely different function from what I wrote.
I do not need to limit any language or currency at my stores.
No problem, I just read the topic title, I didn't read the posts.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by before » Wed May 19, 2021 6:46 pm

I believe my help request corresponds to the topic description. :)

Newbie

Posts

Joined
Mon May 10, 2021 4:51 pm
Who is online

Users browsing this forum: Amazon [Bot] and 60 guests