Hello!
I implement a multi-language site with eCommerce products and groups. Problem is, when I create a group for a specific language other than the 'default' language, the group is created for the default language as well.
What is the reason for this, and how can I stop greek product groups to show up in the default language's group listings? (Swedish)
Thanks,
Jon Lennryd
Developer forum
E-mail notifications
eCom Groups - Group always created in default language
Jon Lennryd
Posted on 27/07/2011 09:24:20
Replies
Kristian Kirkholt
Posted on 27/07/2011 09:41:00
Hi Jon
Any new eCommerce Product Group are created in the basic/standard language. This is standard behavior of DynamicWeb.
A good workaround could be to have a standard (Dummy) langauge with all prododucts and groups.
Kristian
Any new eCommerce Product Group are created in the basic/standard language. This is standard behavior of DynamicWeb.
A good workaround could be to have a standard (Dummy) langauge with all prododucts and groups.
Kristian
Jon Lennryd
Posted on 27/07/2011 11:09:07
Yep, that seem to be working. Problem is that when a customer visits the page, the default (dummy) language is set in his session.
Found the workaround to this; the module Area/Website allow me to define which language in eCommerce is the default. Nice.
The code snippet below will list groups and it's product count for the language the user has in his session:
However, this requires me to add 'global' products to each language's group, for example the group Cars exists as three groups, one for each language; Cars/Bilar/Automobili (as in English/Swedish/Italian). The major part of the products might be in english only, but I want them to show up in all three groups. Is there a better way to do this? It would be convenient if I could translate the group name only, avoiding having three groups.
Found the workaround to this; the module Area/Website allow me to define which language in eCommerce is the default. Nice.
The code snippet below will list groups and it's product count for the language the user has in his session:
GroupCollection groups = shops.get_Item(0).Groups; foreach (Group group in groups) { this.DebugMessage("group.Name: " + group.Name); this.DebugMessage("+----group.Products.Count: " + group.Products.Count); this.DebugMessage("+----group.LanguageID: " + group.LanguageID); }
Jon Lennryd
Posted on 27/07/2011 14:58:08
Maybe I should clarify myself with a scenario of how I would like it work:
1. The producer create a product, and write product-text in English.
2. The consumer can see the product in English.
1. Producer create new product, but this time in two versions, English and Swedish.
2. Consumers with preset language Swedish will see the Swedish version, others will see the English version.
-If no english version exists, all users will see the version available, for example Italian.
However, this is not how eCommerce works! No product will show up, if there is no version in the language the user has selected!
Is there any way to make eCommerce show the English version if that is the only one available? (Even if user has selected Swedish?)
Cheers
1. The producer create a product, and write product-text in English.
2. The consumer can see the product in English.
1. Producer create new product, but this time in two versions, English and Swedish.
2. Consumers with preset language Swedish will see the Swedish version, others will see the English version.
-If no english version exists, all users will see the version available, for example Italian.
However, this is not how eCommerce works! No product will show up, if there is no version in the language the user has selected!
Is there any way to make eCommerce show the English version if that is the only one available? (Even if user has selected Swedish?)
Cheers
Kristian Kirkholt
Posted on 27/07/2011 15:42:54
This post has been marked as an answer
Hi Jon
As you write "this is not how eCommerce works!" so no, there is no way this going to work out of the box. You need somehow to manipulate the Database, or/and build a custom module to get this working..
There are no Fall-back language if no language are pressent.
Kristian
Votes for this answer: 0
Jon Lennryd
Posted on 27/07/2011 17:27:59
Ok, thanks. I just wanted to be sure, to avoid unnecessary work.
Thank you Kristian for your time!
Thank you Kristian for your time!
You must be logged in to post in the forum