Webshop - Multistore

Author Message

Steven Stieng

Wednesday 01 April 2009 5:45:10 am

Hi, is it possible to have multiple stores with eZ?

Here is my scenario:

I want a website which has storemanager A and storemanager B.
Each storemanager have their own webstore.
Each storemanager have a number of customers. (storemanager A has customer A, storemanager B has customer B).

When custemer A logs in, he will only se the products from storemanager A

Is this possible with eZ Publish?

Steven Stieng

Wednesday 01 April 2009 5:46:48 am

Hmmm... a thought came to me after reading this post: http://ez.no/developer/forum/general/mutliple_sites_on_one_installation.

Would the solution be to have a new site for each user?

Carlos Revillo

Wednesday 01 April 2009 6:30:47 am

Interesting question. think is possible but maybe you will need to code some things. Here are my thoughts

1.- Two only siteaccess. (one for the public site, one for the admin site), and only one database.

You can create two usergroups, (usersA, usesrB). users will be under those two groups.

Then you create two folders, one for storeA, and the other for B

You add two new roles, one for usersA, the other for usersB, and assign them to the created usergroups.

You will add policies to restrict the access to the desired folder.

My doubt here is about the user registration. i mean, if a user registers on the site, how you decide if that user is for storeManagerA or for storeManagerB?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:26:19
Script start
Timing: Jan 31 2025 04:26:19
Module start 'layout'
Timing: Jan 31 2025 04:26:19
Module start 'content'
Timing: Jan 31 2025 04:26:19
Module end 'content'
Timing: Jan 31 2025 04:26:19
Script end

Main resources:

Total runtime0.0169 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0078151.1953
Module start 'layout' 0.00540.0024 739.203136.6172
Module start 'content' 0.00780.0077 775.820389.9844
Module end 'content' 0.01550.0014 865.804729.9922
Script end 0.0168  895.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.1426140.0002
Check MTime0.00116.4007140.0001
Mysql Total
Database connection0.00084.552110.0008
Mysqli_queries0.002213.082630.0007
Looping result0.00000.077710.0000
Template Total0.00095.510.0009
Template load0.00084.492810.0008
Template processing0.00020.978010.0002
Override
Cache load0.00053.212410.0005
General
dbfile0.003621.477480.0005
String conversion0.00000.053740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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