Developer forum

Forum » Ecommerce - Standard features » Issue switching languages in Swift

Issue switching languages in Swift

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

We are experiencing some issues switching languages using Swift. It is indeed an older version of Swift but I am trying to figure out the expected behavior.

We have noticed a cookie Ecom.SelectedLangID.Frontend that is not being set before the page is loaded and that is causing a partial change of the language in front-end. The newer versions of Swift do not seem to use this cookie anymore.

I am confused about who and when is setting this cookie in the first place and also if this cookie is necessary at all.

We have also noticed a storage presence of cookies from other domains:

I am not sure if this is a browser-related issue or something related to the Dynamicweb application. We are using DW 9.16.10

Please advise.

Thank you,
Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

The cookies are just from other sites you have visited. Not related to this site. Probably why they are colored yellow. According to Chrome docs, yellow cookies are cookies that are not send. You do share domain on these and names - so maybe somehow Google shows this....? You can see on requests/response headers if these are send and not. I do not have them.

Changing language is basically just navigating to another pageid - that page is on another website that has other settings for e.g. ecommerce language, currency etc. And they are then used.

If you use ?LanguageID=LANG1 and ?CurrencyCode=EUR etc, they will issue a cookie and that cookie will override the settings of your website....

So try it in a inkognito window or clear your cookies - and you should be rolling. My guess is that you have had other configurations of the preferences that used language and country selector and have now changed to the more simpler model?

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

The issue with the language switcher was indeed connected to another configuration and was eventually solved.

I am not sure about the other (yellow) Dynamicweb cookies since they are displayed specifically for the site I was visiting. It is true that I have other dynamicweb sites that I am using daily, but that should interfere.

I have a similar situation (with multiple websites on the same platform) with another .NET platform and I don't see them mixed up.

Maybe this is something that needs more investigation?

Thank you,
Adrian
 

 

You must be logged in to post in the forum