osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

new twist on multi-store problem

This is a discussion on new twist on multi-store problem within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi all! I am relatively new to oscMax and osCommerce, but I am a quick learner. I have a need ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 10-22-2007, 01:31 PM
habelson's Avatar
Member
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
habelson is on a distinguished road
Default new twist on multi-store problem

Hi all!

I am relatively new to oscMax and osCommerce, but I am a quick learner. I have a need for multiple stores, and I managed to get the multi-store contribution up and workign the way I would like it to work.

However, I don't want to have to copy a set of files for each new store. The only difference between the different stores for me is the appearance which I can handle nicely in the BTS.

My question is, is there anyway to pass a paramter into index.php of the store such that I can tell it which store I want to see?

for instance, www.mydomain.com/index.php?store_id=1

obviously I now how to do that much, what I'm hung up on is preserving that parameter thorughout the session. Ideally, I would be able to set the STORES_ID variable form the multi-store contrib. But still, I can't figure out how to get it remember which store I'm visiting.

I would appreciate any suggestions

thank guys... this site and community is really quite impressive
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 10-24-2007, 12:29 PM
habelson's Avatar
Member
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
habelson is on a distinguished road
Default Re: new twist on multi-store problem

OK,

good thing I'm talking to myself... because after working on this a bit more I realize it's a stupid question.

I followed the advice in other threads to use symbolic links to setup the other store fronts and I have done that successfully.

For the sake of posterity, for those of you that don't have shell acess to your host, you can always use the symlink function in php.. that's what I had to do.

Thanks All
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 10-26-2007, 01:06 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: new twist on multi-store problem

I remember once having to do something like that with postnuke, to run several websites (sub1.domain.com sub2.domain.com etc) on just one postnuke installation. Every web site would show a different skin/template, have a different config (show news related to a given category, while the main web site would show all of them...), etc.

I did need to create some symbolik links too, which I did with php (I do not even remember how). I would say it was something like I had a config on each subdomain, which would actually reside on the main web site (sub1.cfg), and then a directory on / which would actually be a symlink to itself, like /sub1/ was actually a symlink to /.

For the sake of posterity too... Since I think I will have to come back here sometime soon, to set up more stores, hanging from my main one, with same database, same products, maybe some categories will be visible on one but not the other ones, template changed a little bit, etc...
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 10-26-2007, 01:48 PM
habelson's Avatar
Member
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
habelson is on a distinguished road
Default Re: new twist on multi-store problem

in my case, in the folder for the second store, I created a symbolic link to every files in the distribution except for database_tables.php and configure.php. Those two files I made copies of and configured accordingly. After that the multi-store contrib lets you choose which products go to which store and which template you use.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 10-26-2007, 03:45 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: new twist on multi-store problem

Mmmmh that is quite a nice solution, you did symlink for evey single file on your store installation...? That should actually probably work not just for OSC, but also for PN and many more kinds of websites.

I have not even looked at multistores (yet), but I am quite sure I will have to sometime, so your hint is appreciated and hopefully will come in handy sooned or later
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 10-27-2007, 03:34 PM
habelson's Avatar
Member
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
habelson is on a distinguished road
Default Re: new twist on multi-store problem

Linking every single file wasn't necessary. I had to do every single file in the root folder and the includes folder. For the rest, I just linked the folders at the root level. (like images) so I didn't have to link each file inside.

By linking the images folder, when you upload a product to your store, you dont have to copy the images to each store. So that works very well for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Multi shop store module for oscmax clauska osCMax v2 Customization/Mods 1 10-12-2006 07:52 PM
Paypal return to store problem daffodil osCMax v1.7 Discussion 5 09-14-2005 05:52 AM
Session Problem - LIVE STORE! ukgoods osCommerce 2.2 Installation Help 1 07-26-2004 03:20 PM
MoPics Twist DaveF osCMax v1.7 Discussion 0 04-30-2004 12:06 AM
Problem with osC-PrintOrder with Store Logo v1.0 knullhund osCMax v1.7 General Mods Discussion 1 03-26-2004 06:12 AM


All times are GMT -8. The time now is 08:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax