Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multi-Stores Multiple Shops Support


hobbzilla

Recommended Posts

Hi,

 

Just a few questions about this contribution please. :)

 

1. Does the url in the db work like this:

 

www.domainname.com == domainname.com

 

2. Can this contribution definitely use one database for 3 "stores", when the "stores" are different domain names, like:

 

http://domainame1.com.au

http://domainame2.com.au

http://domainame3.com.au

 

(the domains obviously reside on the same server).

 

3. I notice the contribution uses a different logo for each "store". Does it also change the page title and any other content ?

 

4. Do emails ("contact us") from each domain(store) go to the relevant 'store owner email address' ?

 

5. Can you have different categories/products in each store ?

 

6. Are there constants set by this contribution, that can be used elsewhere in the osC code, to indentify domain (store) ?

 

Thanks, :)

 

Peter

Link to comment
Share on other sites

Hello,

 

I have trouble with the multi-store contribution - if someone has a hint for a solution...

 

What I have done so far:

- installed oscommerce2.2 ms2 on a private webserver

- deleted all products

- inserted 2 products

- switched over to "prices with tax" (in admin-tool)

 

all was okay and the shown prices were prices incl. tax

 

- Then I downloaded the multi-store contrib and

- copied the files in the catalog and admin folder

- after that I downloaded the update.sql and

- run this query

 

...all was fine...

 

- After activiting the products they were shown correctly again

and the shop was running fine

 

- I copied the complete folder named shop to shop2 and

- corrected the configure.php in admin and catalog-section and

- corrected the tables_database.php in admin and catalog section

- no changes were made in the new admin-section of shop2

 

but now when browsing shop2 (the copied one) I get different prices

shown:

shop1 shows for product1 a price of 14.90EUR (that's okay)

shop2 shows for product1 a price of 14.00EUR

 

shop1 shows for product2 a price of 18.00EUR (that's okay)

shop2 shows for product2 a price of 17.00EUR

 

 

Does someone have a hint what the problem can be?

 

Many thanks for any help!

 

Stefan

Link to comment
Share on other sites

What i want to do is just have a shop that can see, sell, edit and search the other shops products who will be on my server?

So i can give a shop to my customers and they can modify edit, sell products wit their admin account, and my store will rule them all, and can see all categories and products of other shops and also can sell. Can i do it with this cont?

If yes or no, how to do?

(Basically its like not shop but like shops shop who will sell all shops products)

Thanks..

(i send this post to main cont. support page, it was a mistake sorry for cross posting)

This contrib would be a good start for you but there is currently no "lesser admin" so that the other stores owners are viewing only products assigned to their stores and customers assigned to their stores (you might want to have a different customers table for each store in your case).

 

HTH

Link to comment
Share on other sites

and would like to be able to join them to be able to use only 1 merchant payment processor which would mean the call to the payment processing would have to come from the same URL for both sites, is this possible?

I created this contribution for a number of reasons but basically because I have 6 different sites all selling different products (some sites have same products as another and some do not). I also have the same payment processor setup for all and they all go in under one merchant account. I use authorize.net and it works like a charm. I cannot verify what you are needing with any other payment processor as I do not use them.

 

If you are needing the payment processing coming from the same url for both stores then you most likely run into session & cookie problems. But quite a few people use a shared SSL cert on a domain other than their registered one. So I don't see why you couldn't either!

 

HTH

Link to comment
Share on other sites

1. Does the url in the db work like this:  ....

 

From the readme.txt

*NOTE: The status button for the store & url is not tied to anything yet.

 

2. Can this contribution definitely use one database for 3 "stores", when the "stores" are different domain names, like:

 

Yes. As long as all domains have connectivity to the same mysql database. The domains and mysql server don't even have to be on the same physical server!

 

3. I notice the contribution uses a different logo for each "store". Does it also change the page title and any other content ?

 

Right now the logo is used in the admin portion for invoices & packing slips. I guess I could have modified the store logo on the catalog side to display the store logo but I figured some people might want to customize that with the design & look of their site. Each multi-store can be 100% seperate in the look and feel and modules installed.

 

4. Do emails ("contact us") from each domain(store) go to the relevant 'store owner email address' ?

 

Yes. Each store has it's own configuration table. Therefore ANYTHING set in the configuration is independant for each domain.

 

5. Can you have different categories/products in each store ?

 

Yes. Please read the readme.txt that came along with the contrib. It is stated in the first paragraph.

 

This contribution allows you to assign specific products and categories to seperate stores that you define in the administration panel (via the "Stores" link for each category/subcategory/or product.

 

6.  Are there constants set by this contribution, that can be used elsewhere in the osC code, to indentify domain (store) ?

 

Yes. STORES_ID is set in the configuration table.

Link to comment
Share on other sites

- no changes were made in the new admin-section of shop2

 

but now when browsing shop2 (the copied one) I get different prices

shown:

shop1 shows for product1 a price of 14.90EUR (that's okay)

shop2 shows for product1 a price of 14.00EUR

 

shop1 shows for product2 a price of 18.00EUR (that's okay)

shop2 shows for product2 a price of 17.00EUR

 

 

Does someone have a hint what the problem can be?

Display Prices with Tax is not a global setting. Each store will have to have this enabled to true for the prices to "look" the same across each store. If you want this to be the default for each store created change in your /admin/stores.php the sql insert for this to true instead of false.

 

By no means when you setup your first store to be exactly like what you want does that mean you will not have to configure each additional store. Copying the files over exactly ensures that the code & contrib is installed for each store. However, you will still need to set up each additional stores configuration (Owner, e-mail address, country, etc. etc.) If you want to use the same configuration as the first store you would not want to check "Insert default configuration table?" when you create the new store and then do an import/export of the already setup stores configuration table renaming each instance of the configuration table to that which you specified when you set up the new store. ALSO you will need to modify the STORES_ID in each additional store to match the store_id for that store in the stores table. Hope this isn't too confusing.

 

The problem here is your statement:

no changes were made in the new admin-section of shop2

(also you don't need an admin for shop2 if you don't want to .. you can control shop2's configuration by switching in the "super-admin" (updated admin) under Admin=>Stores there is a drop-down box in the upper right hand corner: "Select store to Administer:" simply select the store you want to configure... and then revisit configuration & modules, etc and they have all been switched to that of the store you selected! Ta-da!

 

HTH

Link to comment
Share on other sites

Hi Hobbzill,

 

thanks for the reply, it would seem that i probably won't be able to use this with Barclays Epdq as the Barclays end of the configuration allows for only 1 Allowed URL to make the call to their processing page :(

 

Cheers

 

stubbsy

Link to comment
Share on other sites

Hi Ryan,

 

Thanks for your replies. If you read my other thread in the 'Development' forum, you will see this is "11th hr" considerations.

 

1. Does the url in the db work like this:  ....

From the readme.txt

*NOTE: The status button for the store & url is not tied to anything yet.

 

There is no 'readme.txt'' date=' I assume you mean [i']install.txt[/i] ?

 

Okay, so the url is not used in the contribution, but I could obviously make use of it, if needed.

 

2. Can this contribution definitely use one database for 3 "stores"' date=' when the "stores" are different domain names, like:

 

Yes. As long as all domains have connectivity to the same mysql database.  The domains and mysql server don't even have to be on the same physical server!

 

All 3 domains are on the same server, and have connectivity to the same db. There is _really_ only one domain, the other two are "parked" domains. In short, all 3 resolve to the same IP address, same server, same website.

 

But, if I use this contribution, can I definitely have the 3 stores setup like this:

 

http://domainame1.com.au

http://domainame2.com.au

http://domainame3.com.au

 

they must be setup like above, they cannot be setup like ...........

 

http://domainame1.com.au/shop1

http://domainame2.com.au/shop2

http://domainame3.com.au/shop3

 

Can the contrib. do this ? I understand to use multiple stores, there is duplication from the top level , ... /catalog. At present, that path resides like this .......

 

/home/username/public_html

 

and all three domains point to that path. Will the contrib. work this way or not ?

 

I guess I could use mod_rewrite, we have shell acess and are allowed to do that. I'm just thinking of where/how the path structure has to "sit" with your contribution, possibly 3 mod_rewites, so that:

 

http://domainame1.com.au --> mod_rewrite --> http://domainname1.com.au/store1

http://domainame2.com.au --> mod_rewrite --> http://domainname2.com.au/store2

http://domainame3.com.au --> mod_rewrite --> http://domainname3.com.au/store3

 

What do you think ??

 

3. I notice the contribution uses a different logo for each "store". Does it also change the page title and any other content ?

Right now the logo is used in the admin portion for invoices & packing slips.  I guess I could have modified the store logo on the catalog side to display the store logo but I figured some people might want to customize that with the design & look of their site.  Each multi-store can be 100% seperate in the look and feel and modules installed.

 

Okay' date=' I guess as logo is defined for each store, I could still get the db row, and display the right logo. That said, the only file I had to change for logos was [i']/catalog/includes/header.php[/i] , so as I understand the stock/std path structure of this contribution has seperate "/catalog" paths, you just mod 3 files for 3 stores, manually.

 

This is how I have been able to control the content and other things on the 3 domains at present (excuse the novive/amateur code)

 

<?php

// Constants prefixed with string "JSC" indicate Jehoshua Systems Constants

ini_set('display_errors', 0);  //set this to zero when in production

// If user comes to site with preceeding string "www." , remove it, not required
$httphostname = $_SERVER['HTTP_HOST'];
$hostname = str_replace("www.", "", $httphostname);
define('JSC_HOSTNAME', $hostname);


$domains['allesind.com.au'] = array(
 'directory'=>'alles',
 'domain_no'=>'1',
 'email_from' => 'Alles Industries Pty Ltd <[email protected]>',
 'logo'=>'logo_alles.jpg',
 'store_name' => 'Alles Industries Pty Ltd',
 'store_owner_email_address' => '[email protected]',
 'title'=>'Alles Industries Pty Ltd'
);

$domains['allesindustries.com.au'] = array(
 'directory'=>'alles',
 'domain_no'=>'1',
 'email_from' => 'Alles Industries Pty Ltd <[email protected]>',
 'logo'=>'logo_alles.jpg',
 'store_name' => 'Alles Industries Pty Ltd',
 'store_owner_email_address' => '[email protected]',
 'title'=>'Alles Industries Pty Ltd'
);

$domains['christianaudioandvideo.com.au'] = array(
 'directory'=>'cav',
 'domain_no' => '2',
 'email_from' => 'Christian Audio & Video <[email protected]>',
 'logo' => 'logo_cav.gif',
 'store_name' => 'Christian Audio & Video',
 'store_owner_email_address' => '[email protected]',
 'title' => 'Christian Audio & Video'
);


if (isset($domains[$hostname]['directory'])) {
  $directory = $domains[$hostname]['directory'];
  $domain_number = $domains[$hostname]['domain_no'];
  $email_from = $domains[$hostname]['email_from'];
  $logo = $domains[$hostname]['logo'];
  $store_name = $domains[$hostname]['store_name'];
  $store_owner_email_address = $domains[$hostname]['store_owner_email_address'];
  $title = $domains[$hostname]['title'];
}  else {
  $domain_number = '0';  //replace this later with an error function (emails to me)
  $email_from = '';
  $logo = '';
  $store_name = '';
  $store_owner_email_address = '';
  $title = 'Unknown site';
}

define('JSC_DIRECTORY', $directory);
define('JSC_DOMAIN_NUMBER', $domain_number);
define('JSC_EMAIL_FROM', $email_from);
define('JSC_LOGO', $logo);
define('JSC_STORE_NAME', $store_name);
define('JSC_STORE_OWNER_EMAIL_ADDRESS', $store_owner_email_address);
define('JSC_TITLE', $title);

$title_uppercase = strtoUpper($title);

 

4. Do emails ("contact us") from each domain(store) go to the relevant 'store owner email address' ?

Yes. Each store has it's own configuration table.  Therefore ANYTHING set in the configuration is independant for each domain.

 

That's good' date=' some more pros for using this. :)

 

5. Can you have different categories/products in each store ?

Yes. Please read the readme.txt that came along with the contrib.  It is stated in the first paragraph.

 

Right' date=' have read through that now, thanks. Is it easy to replicate a product for different sotores (say, copy/paste in admin ??)

 

6.  Are there constants set by this contribution, that can be used elsewhere in the osC code, to indentify domain (store) ?

Yes. STORES_ID is set in the configuration table.

 

Okay' date=' so I could use that if needed.

 

Do you see any other problems I might encounter, considering I basically want 3 stores, but [b']really[/b] need them "hidden" behind the domain names.

 

Thanks for all your help, :)

 

Peter

Link to comment
Share on other sites

There is no 'readme.txt', I assume you mean install.txt ?

 

Yes. My mistake. It was in the install.txt

 

All 3 domains are on the same server, and have connectivity to the same db. There is _really_ only one domain, the other two are "parked" domains. In short, all 3 resolve to the same IP address, same server, same website.

 

I guess I would assume that mod-rewrite rules would work for you but I have never personally used them with my multi-stores contrib. I find it easier for each domain shop to have have it's own installation directory to maintain a different look and feel and directory structure. You can use links so you don't have to keep multiple copies of images, and quite a bit of the oscommerce code (modules, functions, etc) to ease updating, etc.

 

But, if I use this contribution, can I definitely have the 3 stores setup like this:

http://domainame1.com.au

http://domainame2.com.au

http://domainame3.com.au

 

I currently have had success as have others. But like I said above I do not have 1 domain hosting and 2 domains parked and pointed at domain 1. You would have to use code (like I guess you already use) or rewrite rules to maintain a seperate identity for each domain, otherwise the other 2 domains are just aliases for domain1 with the same content for each.

 

So in short, YES you can definitely have 3 stores with the different domains setup, but I can only speak for this situation where each domain has it's own unique installation path. I have no experience otherwise.

 

they must be setup like above, they cannot be setup like ...........

 

http://domainame1.com.au/shop1

http://domainame2.com.au/shop2

http://domainame3.com.au/shop3

Can the contrib. do this ?

 

This contrib doesn't create a hosting space or setup domains or anything like that. You still have to decide your directory structure and how you intend your hosting to interact. You can setup hosting like what you have described above and use this contrib and you can also set it up for www.widgets.com; www.thingys.com; www.whatchamacallits.com. You could use mod-rewrite rules to achieve having each installed under a /shop# or /catalog or different directories under one domain name. If you are wanting 3 domains with 3 distinct shopping carts and 3 distinct content & design, why would you not acquire hosting for the other 2 domains? And then simply install the osc into the root directory and not into /catalog ?? It really all depends on how you want to install oscommerce.

 

I understand to use multiple stores, there is duplication from the top level , ... /catalog. At present, that path resides like this .......

 

/home/username/public_html

 

and all three domains point to that path. Will the contrib. work this way or not ?

 

I have not tried using this contribution in the "aliased" situation that you are discussing. You could potentially use mod-rewrite rules or a framed redirect where they are installed like:

/home/username/public_html/store1; /home/username/public_html/store2; /home/username/public_html/store3

 

Then hide the "store#" by using a frame or by using some clever coding. I have no experience with this and this contrib was not designed with this in mind.

 

You really just need to setup a test store(s) and see if you can use this contribution in your situation. There are a hundred different ways you can setup a website and hosting and domain structure. This contribution only makes it possible for the stock osc code to allow for displaying cataloged products according to a defined STORES_ID. As far as the logo for each store, as previously mentioned, it is currently only used in the admin portion for packing slips & invoices. It does not change any of the content of osc besides that which is pulled from the configuration table (store's owner, store's address, etc.)

 

Right, have read through that now, thanks. Is it easy to replicate a product for different sotores (say, copy/paste in admin ??)

 

Yes, It is easy. But I wouldn't say that it is not time intensive using the admin portion. If you have a large catalog I would suggest you make a spreadsheet and then import it into the products_to_stores table.

 

The best way to find out if this contrib will work for you is to set up a test store and try it out!! Hands on experience sure beats days of waiting for people to get back with you trying to answer your questions about what it can and cannot do.

 

HTH.

Link to comment
Share on other sites

Hi Ryan,

 

All 3 domains are on the same server, and have connectivity to the same db. There is _really_ only one domain, the other two are "parked" domains. In short, all 3 resolve to the same IP address, same server, same website.

 

I guess I would assume that mod-rewrite rules would work for you but I have never personally used them with my multi-stores contrib.

 

Jason (jpf) has sent me a PM about doing this, because I noticed in this thread, it seemed he had done it. His reply is very helpful, especially about using mod_rewrite and other ways to do this.

 

Possibly you can consider using the "URL" parameter to control this type of thing in a future release of this contribution.

 

I find it easier for each domain shop to have have it's own installation directory to maintain a different look and feel and directory structure. You can use links so you don't have to keep multiple copies of images, and quite a bit of the oscommerce code (modules, functions, etc) to ease updating, etc.

 

Sorry, I'm confused, don't you mean, each domain shop to have its' own 'catalog' directory ?

 

But, if I use this contribution, can I definitely have the 3 stores setup like this:

http://domainame1.com.au

http://domainame2.com.au

http://domainame3.com.au

 

I currently have had success as have others. But like I said above I do not have 1 domain hosting and 2 domains parked and pointed at domain 1. You would have to use code (like I guess you already use) or rewrite rules to maintain a seperate identity for each domain, otherwise the other 2 domains are just aliases for domain1 with the same content for each.

 

So in short, YES you can definitely have 3 stores with the different domains setup, but I can only speak for this situation where each domain has it's own unique installation path. I have no experience otherwise.

 

Okay, so in theory it seems it can be done. I _think_ Jason has been able to do it this way.

 

If you are wanting 3 domains with 3 distinct shopping carts and 3 distinct content & design, why would you not acquire hosting for the other 2 domains? And then simply install the osc into the root directory and not into /catalog ??  It really all depends on how you want to install oscommerce.

 

Just 3 domains, one cart, and the ability to have 3 distinct content & design. In regards to hosting, I supply the hosting, the client only wants to pay for one lot of hosting for the 3 domains (and why should he pay more ?), and osC, plus my minor mods have made it possible to do this. It's simply that people in other threads kept asking me , 'why don't you use the "Multiple Stores" contribution ?', so here I am, asking away. :D

 

You really just need to setup a test store(s) and see if you can use this contribution in your situation. There are a hundred different ways you can setup a website and hosting and domain structure.  This contribution only makes it possible for the stock osc code to allow for displaying cataloged products according to a defined STORES_ID.  As far as the logo for each store, as previously mentioned, it is currently only used in the admin portion for packing slips & invoices.  It does not change any of the content of osc besides that which is pulled from the configuration table (store's owner, store's address, etc.)

 

All 3 domains are now "live", so I'm not 100% certain that I would be in a position to "test" the contribution on a live site, unless there was a 100% guarantee that none of the testing would interfere in any way with the production website.

 

I have used the SQL code to modify the db, because I knew the contrib's (PHP) code would be needed to access any of the new/changed tables/columns, so simply having the db changes is okay, they are not being used. But as I said, I have no idea if testing the contribution would interfere with the production website. It's only just gone live and is stable, a new client, the last thing I need is scripts crashing, or other problems.

 

If the contrib. runs/relies on, the STORES_ID, to reference (no doubt) a path, then wouldn't it be a minor modification for the STORES_ID to reference a domain ? I guess that is what you had in mind with the "URL" , that I think you said isn't used as yet.

 

The best way to find out if this contrib will work for you is to set up a test store and try it out!!  Hands on experience sure beats days of waiting for people to get back with you trying to answer your questions about what it can and cannot do.

 

If I created a test store like:

 

http://domainname1.com.au/store1

 

and loaded/installed this contribution, would:

 

(i) The current osC website (3 domains) remain unaffected ?

(ii) I be able to add/change any contents of store1, independently ?

 

Yes, hands on experience is the best way to learn, but not for a production website. It needs to be in a completely seperate test environment (seperate domain). Maybe I should just buy another domain, and do all the testing on my website, that way, there will be 2 domains on the one site, the new clients site remains 'alive and well', and my site needs a complete "make-over" anyway (I was chewing on using osC for it ??).

 

Thanks for your replies and your time. I'm sure this is a great contribution, unfortunately I learnt of it too late, as the site was about to go live. Doing the testing on my website seems like a good idea (hey, a domain is about USD $9), and the tips Jason gave me on mod_rewrite _should_ do the trick.

 

Thanks a lot,

 

Peter

Link to comment
Share on other sites

Sorry, I'm confused, don't you mean, each domain shop to have its' own 'catalog' directory ?

Yes, I find it easier that each domain have it's own installation of oscommerce (espcecially if the look & feel is going to change). Whether or not you want ti install in the default 'catalog' directory is up to you. I personally like my osc install to be the root directory of the domain.

 

All 3 domains are now "live", so I'm not 100% certain that I would be in a position to "test" the contribution on a live site, unless there was a 100% guarantee that none of the testing would interfere in any way with the production website.

You don't have to "test" it on your live site. You can test it on a local machine or some spare webspace. If you are going to be adding a lot of contribs or contribs that are fairly intensive you would obviously want to test their functionality on a TEST site, and not on your live site. I would suggest you install apache & mysql on your local box for testing purposes.

 

You will certainly not get any guarantee from me! :) (you really don't even have a guarantee with using oscommerce!)

 

If the contrib. runs/relies on, the STORES_ID, to reference (no doubt) a path, then wouldn't it be a minor modification for the STORES_ID to reference a domain ? I guess that is what you had in mind with the "URL" , that I think you said isn't used as yet.

 

STORES_ID is an interger and cooresponds to a table index for stores. It does not use a path as you have stated. Then using another column (products, categories, manufacturers) you have which (product, category, manuf., etc) belong to which store.

 

If I created a test store like:

 

http://domainname1.com.au/store1

 

and loaded/installed this contribution, would:

 

(i) The current osC website (3 domains) remain unaffected ?

(ii)  I be able to add/change any contents of store1, independently ?

 

That is what I was talking about when I said testing it.

If your 3 stores are domain1.com domain2.com domain3.com and only domain1.com has hosting space and the other 2 domains are aliases for domain1.com and your installation of all three shops are /path/to/domain1.com/catalog, then YES you can install /path/to/domain1.com/testing/shop1 ; /path/to/domain1.com/testing/shop2 ;

/path/to/domain1.com/testing/shop3 and be perfectly fine leaving along domain1.com LIVE catalog as long as you use a different database. If you have access to only one database, you can also open up the install/oscommerce.sql and modify each table name and append "testing_" in front of each default table name (you will also need to modify "database_tables.php" in the includes directory for the test shop1.

 

HTH.

Link to comment
Share on other sites

Hi Ryan,

 

Yes, I find it easier that each domain have it's own installation of oscommerce (espcecially if the look & feel is going to change). Whether or not you want to install in the default 'catalog' directory is up to you. I personally like my osc install to be the root directory of the domain.

 

For each domain to have it's own install, would indicate each domain on a seperate website though, or same website, and different databases, I think ??

 

Yes, I agree, I prefer the osC to be in the root directory, less confusing for me.

 

You don't have to "test" it on your live site. You can test it on a local machine or some spare webspace. If you are going to be adding a lot of contribs or contribs that are fairly intensive you would obviously want to test their functionality on a TEST site, and not on your live site. I would suggest you install apache & mysql on your local box for testing purposes.

 

Local testing is out, I don't have the computer "grunt" or correct OS to do anything like that. Looked at doing 'phpdev' and other things, looked at setting up my own Linux box, the bottom line is lack of resources.

 

Yes, I could just simply setup:

 

http://domain1.com.au/shop1

http://domain2.com.au/shop2

http://domain3.com.au/shop3

 

which all simply resolve to:

 

/home/username/public_html/shop1

/home/username/public_html/shop2

/home/username/public_html/shop3

 

whereas, the current "live" (3 domains setup) resides at:

 

/home/username/public_html/

 

and use/load a copy of the other website, add the Multiple Stores contribution to that, and then do the testing. The mod_rewite side is the last thing to do, and I've had some help in an Apache forum for that, so I know that will work later on.

 

Regards, contributions, there are already 4 or 5 that I would like to use, plus yours, so really, the 'test site' would be ideal, to thoroughly test any contribs, or osC mods I make, before installing them to any production websites. The more I think about just setting up a test website/domain, the easier I feel about this. :D

 

STORES_ID is an interger and corresponds to a table index for stores. It does not use a path as you have stated. Then using another column (products, categories, manufacturers) you have which (product, category, manuf., etc) belong to which store.

 

Thanks, I see now how you use that to filter everything. I searched through the contrib., and noticed that in addition to the table column reference to STORES_ID, there is also a constant called by that name. No doubt, in the testing I do, I may look at simply setting that (the constant) by domain name, assuming of course I have the 3 stores data loaded in the dd, and the 3 installs done.

 

That is what I was talking about when I said testing it.

If your 3 stores are domain1.com domain2.com domain3.com and only domain1.com has hosting space and the other 2 domains are aliases for domain1.com and your installation of all three shops are /path/to/domain1.com/catalog, then YES you can install /path/to/domain1.com/testing/shop1 ; /path/to/domain1.com/testing/shop2 ;

/path/to/domain1.com/testing/shop3 and be perfectly fine leaving along domain1.com LIVE catalog as long as you use a different database. If you have access to only one database, you can also open up the install/oscommerce.sql and modify each table name and append "testing_" in front of each default table name (you will also need to modify "database_tables.php" in the includes directory for the test shop1).

 

Thanks very much for clarifying that for me, much appreciated. :)

 

Peter

Link to comment
Share on other sites

hi hobbzilla and all

 

thanks again for your help and support on this contrib. we have got it working and we are just going thought a few test transactions and I was wondering if any one has come up with this fault before.

 

I can make a order form shop one but when I come to make an order form shop two I get the following error message at the conformation page (the last page of the order process, you are supposed to get "thanks for the order") instead I get.

 

Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /*********/catalog/includes/modules/payment/cc.php on line 162

 

Warning: Cannot modify header information - headers already sent by (output started at /********/catalog/includes/modules/payment/cc.php:162) in /*********/catalog/includes/functions/general.php on line 29

 

any one have any ideas on a resolution, the data bases is getting the order details but not the CC details so the order can not be processed.

 

thanks for any help

Edited by richjboyd

Richard

Link to comment
Share on other sites

hi hobbzilla and all

 

thanks again for your help and support on this contrib. we have got it working and we are just going thought a few test transactions and I was wondering if any one has come up with this fault before.

 

I can make a order form shop one but when I come to make an order form shop two I get the following error message .....................................

found some other tread which seems to have a fix for it

 

http://www.oscommerce.com/forums/index.php?showtopic=75316&st=0

 

its my server not this contribution, installed the fix and it seems to work greate

 

richard.

Richard

Link to comment
Share on other sites

Hi,

 

Here are the mod_rewites need to do the 3 stores on the one domain ...........

 

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?example1\.com$ [NC]
RewriteRule !^shop1/.*$ /shop1%{REQUEST_URI} [NC,L]

RewriteCond %{HTTP_HOST} ^(www\.)?example2\.com$ [NC]
RewriteRule !^shop2/.*$ /shop2%{REQUEST_URI} [NC,L]

RewriteCond %{HTTP_HOST} ^(www\.)?example3\.com$ [NC]
RewriteRule !^shop3/.*$ /shop3%{REQUEST_URI} [NC,L]

 

Peter

Link to comment
Share on other sites

I've installed your contribution and my "new products" box in the middle of the main page is not working :( when I try to leave original new_products.php it works great but shows me all the products in all the shops... :( what can you suggest me? :huh:

 

I have OSC2.2MS2 and I have also installed:

- BTS 1.2

- Autologon

Link to comment
Share on other sites

I've got what the problem was...

 

last time i've added STORE's attribute only to category, i didn't add sub-category and products.... It looked something like this

 

STORES:

1 - store1

2 - store2

 

CATEGORIES:

> category <--- here i puted the STORE's attrib 1

> sub_category

- product_1

- product_2

- product_3

 

So I thought that if I'll tell OSC that this category is Store 1 it will automatically think that all the sub-categories and it's products are Store 1 as well...

 

After I've puted this attrib to all of the sub-categories and products of main category, finally OSC started to understand what I've ment there =)

 

Maybe I have some kind of a mitake here please tell me if so =)

Link to comment
Share on other sites

rn,Mar 17 2004, 12:13 PM] I've got what the problem was...

 

last time i've added STORE's attribute only to category, i didn't add sub-category and products.... It looked something like this

 

STORES:

1 - store1

2 - store2

 

CATEGORIES:

> category <--- here i puted the STORE's attrib 1

> sub_category

- product_1

- product_2

- product_3

 

So I thought that if I'll tell OSC that this category is Store 1 it will automatically think that all the sub-categories and it's products are Store 1 as well...

 

After I've puted this attrib to all of the sub-categories and products of main category, finally OSC started to understand what I've ment there =)

 

Maybe I have some kind of a mitake here please tell me if so =)

ak[0]rn,

 

Nope what you did was the proper thing to do. You will have to enable all categories as well as subcategories in order to display the products you need. Please note however, that if a product is enabled for a store, that product will be able to be purchased regardless if the categories the product is assigned to is enabled for that store or not. There are several ways this can happen (hard edit the address location, new releases, search, best sellers, etc.).

 

HTH

Link to comment
Share on other sites

Thanks for the contribution.

 

Can I persuade you to look at the Easy Populate contribution and tell me what changes I need to make to use it with the Multi-Stores contribution? I have gotten Multi-Stores working over my heavily modded MS2 which includes Easy Populate, but the easy populate does not know about any but the first store.

 

I am new to php, and to osC, so I have little or no confidence in my ability to make such changes unaided.

 

Thanks for your consideration.

Link to comment
Share on other sites

hi @ll

 

i got it sort of 'up and running' but

from the /admin/index.php he won't change the data.

 

when i select one shop (i got 3 in all) from the dropdown menu.

the output always stays the same, no matter which one i choose.

 

so when i change the shopname, it will appear in all 3 shops,

just as if he's only using one configuration file.

 

but i do have three config-files in my db and they're all assigned to the

right shop-id's.

 

so folks - i'm kind of lost :(

 

any help out there?

... in the end, it will work

Link to comment
Share on other sites

I installed the multi-stores contribution by modifying individual components of an existing store. I thought I had done it correctly, but now when I go into admin, catalog and try to edit a product it brings up the edit category screen instead of the edit product screen.

 

I don't have a clue as to where to look for this. Could someone point me to the likely modules, please.

 

By the way, I now have three stores, the original one that is now default, and two others that I added. The problem shows up in all three of them.

 

Any help at all would be welcome.

Link to comment
Share on other sites

Thanks for the contribution.

 

Can I persuade you to look at the Easy Populate contribution and tell me what changes I need to make to use it with the Multi-Stores contribution? I have gotten Multi-Stores working over my heavily modded MS2 which includes Easy Populate, but the easy populate does not know about any but the first store.

 

I am new to php, and to osC, so I have little or no confidence in my ability to make such changes unaided.

 

Thanks for your consideration.

I currently just don't have time to donate efforts into making this contrib work with all the other contributions out there. I know it sucks and I apologize. The one thing I can suggest is that you could post a job on elance or scriptlance or a resource like that and get a good php programmer to look into for you. I have not used easy populate so I am only spoutting off ideas. But it seems that if you could add another data column to your excel file (or csv file); assigned_to_store, and use another delimter such as the | within that coma delimitted field and list out the stores for that product, category, subcat, that you want assigned to which store then modify the script to be able to populate the products_to_stores, categories_to_stores, etc. etc. tables based on a field like 1|3|5 you would then get three entries for that product/cat/subcat in their respective table so that product/cat/subcat is assigned for that store.

 

Just my quick thoughts. With both contrib's available for modification.. a resonable programming price would probably be available.

 

HTH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...