bze306 Posted January 18, 2007 Share Posted January 18, 2007 I have a site that I am working on where I created a simple store front for items that can be added and sold. I would like to incorporate the code in a members area where members after they sign into their personal area can manage their own store by clicking on a mystore icon. The problem is that I only have the one store and of course they all can't share the same store. I plan on having a main website that people can pick a different store depending on what they want to purchase. Not sure how to make it so that each members area will have their own store to manage.. Any help would be great. Quote Link to comment Share on other sites More sharing options...
trochia Posted January 18, 2007 Share Posted January 18, 2007 Create sub directories or sub domains... Quote Link to comment Share on other sites More sharing options...
bze306 Posted January 18, 2007 Author Share Posted January 18, 2007 Can you expand some on the subdirectory idea or subdomains. I am fairly new to php. Would I create the sub-directory and then make a copy of the store for the member to use? Can I include this is my php script when the user's personal page is created? Thanks. Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 It depends on how you're doing your "store" now. You need to think about the structure. Is the store a table in the database? You need to make 'stores' and give each an ID and normalize the data. I'd do some research on database design and structure. I don't think filesystem is the way to go with this. Quote Link to comment Share on other sites More sharing options...
trochia Posted January 18, 2007 Share Posted January 18, 2007 Jesirose,From what I read, you want to let each "member" have their own "unique" storefront.. I would then suspect that "they" would eventually want to have their own "unique" look. Therefore, I suggested file structure over DB, as I felt this would simplify things for her...just duplicating what she has existing, and linking to the main site. Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 yeah but if if they all have different items, aren't these items going to be stored in the DB? Then you need to be able to tell which store it is, so you need store ids or something. Quote Link to comment Share on other sites More sharing options...
bze306 Posted January 18, 2007 Author Share Posted January 18, 2007 The store currently is in a mysql database locally on my machine. I will do some research on how to make more stores and give them each a seperate id. I assume I would create a seperate id column that would seperate the different stores. I am familiar some with normalizing my data in mysql. I am not concerned about the look of each store because the stores will be on my main site that I control the look. My plan is to have a main page that lists different stores. If someone wants to shop a specific store they would click on it and then go into the online store they wanted to shop at. I may have some templates that the store owner can switch to but that won't be a problem. I would like the stores to have the same look as the rest of the site that I am developing. I can control that when they are in the admin area of their store. The problem is building in the ability for them to have a store already in place when they sign up to become a member. Any other ideas.. Send them my way.. I appreciate it. Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Well from what you said, my idea will work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.