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...

eZ debug

Timing: Jan 18 2025 11:14:22
Script start
Timing: Jan 18 2025 11:14:22
Module start 'content'
Timing: Jan 18 2025 11:14:22
Module end 'content'
Timing: Jan 18 2025 11:14:22
Script end

Main resources:

Total runtime0.1647 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 588.9922180.8125
Module start 'content' 0.00810.0089 769.8047102.0547
Module end 'content' 0.01700.1477 871.8594531.8750
Script end 0.1646  1,403.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.6114200.0002
Check MTime0.00160.9813200.0001
Mysql Total
Database connection0.00090.564610.0009
Mysqli_queries0.113969.12821410.0008
Looping result0.00140.82501390.0000
Template Total0.147189.310.1471
Template load0.00110.672110.0011
Template processing0.146088.662510.1460
Override
Cache load0.00070.434710.0007
Sytem overhead
Fetch class attribute can translate value0.00140.875510.0014
XML
Image XML parsing0.00040.214210.0004
General
dbfile0.00181.0774200.0001
String conversion0.00000.003030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs