Results 1 to 6 of 6

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

      
  1. #1
    Member habelson's Avatar
    Join Date
    Sep 2007
    Posts
    32
    Rep Power
    0


    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

  2. #2
    Member habelson's Avatar
    Join Date
    Sep 2007
    Posts
    32
    Rep Power
    0


    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

  3. #3
    Active Member MindTwist's Avatar
    Join Date
    Jun 2007
    Location
    Barcelona, Spain
    Posts
    408
    Rep Power
    7


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

  4. #4
    Member habelson's Avatar
    Join Date
    Sep 2007
    Posts
    32
    Rep Power
    0


    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.

  5. #5
    Active Member MindTwist's Avatar
    Join Date
    Jun 2007
    Location
    Barcelona, Spain
    Posts
    408
    Rep Power
    7


    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

  6. #6
    Member habelson's Avatar
    Join Date
    Sep 2007
    Posts
    32
    Rep Power
    0


    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.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •