Forums / General / Webshop - Multistore

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?

eZ debug

Timing: Jan 19 2025 00:26:50
Script start
Timing: Jan 19 2025 00:26:50
Module start 'content'
Timing: Jan 19 2025 00:26:51
Module end 'content'
Timing: Jan 19 2025 00:26:51
Script end

Main resources:

Total runtime0.7433 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.5859180.8516
Module start 'content' 0.00730.6157 768.4375473.4453
Module end 'content' 0.62300.1203 1,241.8828333.4922
Script end 0.7432  1,575.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5681210.0002
Check MTime0.00170.2247210.0001
Mysql Total
Database connection0.00080.111310.0008
Mysqli_queries0.675490.86141940.0035
Looping result0.00190.25011920.0000
Template Total0.703294.620.3516
Template load0.00200.270820.0010
Template processing0.701294.337720.3506
Template load and register function0.00020.024510.0002
states
state_id_array0.00110.145110.0011
state_identifier_array0.00080.111720.0004
Override
Cache load0.00170.2252210.0001
Sytem overhead
Fetch class attribute can translate value0.00200.267530.0007
Fetch class attribute name0.00100.130530.0003
XML
Image XML parsing0.00050.073630.0002
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00290.3883210.0001
String conversion0.00010.012630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs