Forums / Setup & design / basket changes items while changing site language

basket changes items while changing site language

Author Message

Ulrich L.

Monday 11 September 2006 6:28:20 am

Hi,
I set up a multilingual shop site.

The behaviour of the basket is strange: For every language (siteaccess) the content of the basket is different. When putting something into the basket on the english siteaccess, the german basket does not show it and vice versa...

Below I show my settings/override/site.ini.append.php as well as my site.ini.append.php for the german siteaccess (example). I assume the solution must be somewhere inside these files, but I just don't get it...

Thanks for any help!

override/site.ini.append.php

[ExtensionSettings]
ActiveExtensions[]=ezpaypal
ActiveExtensions[]=ezdhtml

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=en
SiteList[]=en
SiteList[]=de
SiteList[]=fr

[SiteAccessSettings]
MatchOrder=uri
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1
CheckValidity=false
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=de
AvailableSiteAccessList[]=fr
AvailableSiteAccessList[]=en_admin
HostMatchMapItems[]

[RegionalSettings]
TextTranslation=enabled
ShowUntranslatedObjects=enabled

[ContentSettings]
TranslationList=eng-GB;ger-DE;fre-FR

[MailSettings]
...
<siteaccess>/sit.ini.append.php

[DatabaseSettings]
...

[InformationCollectionSettings]
EmailReceiver=

[SiteSettings]
SiteName=My Site
SiteURL=localhost/cms/index.php/de
LoginPage=embedded

[UserSettings]
RegistrationEmail=

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]=en
RelatedSiteAccessList[]=de
RelatedSiteAccessList[]=fr
RelatedSiteAccessList[]=en_admin
ShowHiddenNodes=false

[DesignSettings]
SiteDesign=shop_site
AdditionalSiteDesignList[]=base

[RegionalSettings]
Locale=ger-DE
SiteLanguageList[]
SiteLanguageList[]=ger-DE
SiteLanguageList[]=eng-GB
SiteLanguageList[]=fre-FR

[FileSettings]
VarDir=var/de

[ContentSettings]
CachedViewPreferences[full]=user_preferred_currency='';user_preferred_country
TranslationList=

[MailSettings]
...

Kristof Coomans

Monday 11 September 2006 6:37:28 am

Hello Ulrich

You're currently using different sessions for the different site accesses. I think you have to use the same session because there's a session id field in the ezbasket db table.

Add this to override/site.ini.append.php:

[Session]
SessionNamePerSiteAccess=disabled

Does this solve the problem?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Ulrich L.

Monday 11 September 2006 7:17:50 am

Yes, it does! Great!
Thank you!
U.

Fabricio Guerrero

Sunday 08 April 2007 12:11:37 pm

Hi,

I've come across the same article that Ulrich L. did.

this one: http://ez.no/community/articles/new_features_in_ez_publish_3_8/translating_and_displaying_multi_lingual_content#comments

It's a pretty good article and got my site showing the content in different languages pretty easily and quickly.

but I've come across 1 problem. in that same article the author mentions:

If you get an "access denied" error when viewing your pages, change the site access permissions through roles and policies and give the anonymous user permissions to your new siteaccesses (en and gr).

I've edited the policies to allow anonymous user to view all the siteaccesses but no luck at all.. it's prompting the anonymous user to logon to see any content at all on the site. as soon as you logon you can view all the content with all translations but sadly this is not a solution as the current site i'm building does not have a logon function...

has anyone come across to something similar when using various siteaccesses??

did i something anything wrong?

thanks.
Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Fabricio Guerrero

Monday 09 April 2007 3:04:23 am

sorry and i don't mean to spam..

but today i my bday.. :) :) :)

so if i can get some help please with my previous post it'd be an excellent bday present...

thanks.
Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...