Forums / General Questions / 3 domains share products users etc 3 different stores

3 domains share products users etc 3 different stores

Started by quality_refurbished on 27 Feb 2013, 11:43 AM · Views: 1,001

Results 1 to 9 of 9
27 Feb 2013, 11:43 AM
#1
quality_refurbished avatar

quality_refurbished

New Zenner

Join Date:
Feb 2013
Posts:
41
Plugin Contributions:
0

3 domains share products users etc 3 different stores

Hi

I'm new here and I know it's been asked but after searching I've struggled to find a way to so it but I have 3 domain names and would like to have them all share the same products but change the header on each 1 and possibly a different theme is this possible if so how can I do it please?

Thank you

27 Feb 2013, 2:31 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: 3 domains share products users etc 3 different stores

This maybe:

http://www.zen-cart.com/downloads.php?do=file&id=378

I haven't used it and I strongly suggest you install it on a Zencart test site(s) before trying to use it on a live store.

5 Mar 2013, 3:33 PM
#3
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: 3 domains share products users etc 3 different stores

Can just install the same Zencart files on each domain, but they all point at the same database, and then change the files on each domain to look different stylewise.

5 Mar 2013, 3:43 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: 3 domains share products users etc 3 different stores

dgent:

Can just install the same Zencart files on each domain, but they all point at the same database, and then change the files on each domain to look different stylewise.

Bear in mind that as they all share the same database, every database setting will be STANDARD across all sites, so (for example) if you choose to HIDE the right column globally using the database setting, then ALL sites will have the right column hidden. There are scores (perhaps hundreds) of database settings that influence structure and layout - not a problem in itself, but remember that whatever is set in the database will apply to ALL sites connected to it.

20 years a Zencart User

6 Mar 2013, 9:10 AM
#5
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: 3 domains share products users etc 3 different stores

schoolboy:

Bear in mind that as they all share the same database, every database setting will be STANDARD across all sites, so (for example) if you choose to HIDE the right column globally using the database setting, then ALL sites will have the right column hidden. There are scores (perhaps hundreds) of database settings that influence structure and layout - not a problem in itself, but remember that whatever is set in the database will apply to ALL sites connected to it.

Not an issue, I get round that by turning off elements with CSS so they are not visible to the user.

6 Mar 2013, 9:33 AM
#6
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

Re: 3 domains share products users etc 3 different stores

thinking aloud, would this not cause an issue with payments?

for example, with 1 database to rule them all, how would paypal express know what site to redirect the buyer too?
wouldn't all three sites show the same sales data too?

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

6 Mar 2013, 9:49 AM
#7
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: 3 domains share products users etc 3 different stores

Well it wouldnt cause issues, yes all the sales would be logged on all sites. Paypal always redirects to the correct site, thats nothing to do with the database.

Ive done this exact thing. I have three dress sites running off the same database, one is focussed around body con dresses, the other designer dresses, and the other clubbing dresses. The three sites have different looks, and ive done some clever coding with php so the two other sites modify the keywords on the product names and their descriptions, so they all show different content. Ie 'Black Body Con Skirt' will show up as 'Black Designer Skirt' and 'Black Clubbing Skirt' on the other sites, like wise substituted words in the descriptions, metatags, everywhere, and google indexes each site independently with no duplicate content.

Allows me to have different content on the net, selling the same product, and without diluting my keyword content level on each site. Great thing is all the updates on one site affect the others, so simple to maintain.

7 Mar 2013, 12:45 PM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: 3 domains share products users etc 3 different stores

dgent:

The three sites have different looks, and ive done some clever coding with php so the two other sites modify the keywords on the product names and their descriptions, so they all show different content.

With respect, only a small portion of ZenCart merchants will have the skills that match yours, and I dread to think of the possible problems that the less experienced people will find themselves in by attempting to do what you have done.

I really don't think this is a task that should be trivialized.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

7 Mar 2013, 2:06 PM
#9
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: 3 domains share products users etc 3 different stores

RodG:

With respect, only a small portion of ZenCart merchants will have the skills that match yours, and I dread to think of the possible problems that the less experienced people will find themselves in by attempting to do what you have done.

I really don't think this is a task that should be trivialized.

Cheers
Rod

To be honest, it was surprisingly simple and only involved modifying around 10 files, with a few extra lines of code

For instance, this is the original code for the product name in your product description (tpl_product_info_display.php)

<!--bof Product Name--> <h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1> <!--eof Product Name-->

And this is the new code

<!--bof Modified Product Name Constructor--> <?php // The text string $newprodname = $products_name; // The word we want to replace $oldWord = "Clubbing"; // The new word we want in place of the old one $newWord = "Designer"; // Run through the text and replaces all occurrences of $oldText $newprodname = str_replace($oldWord , $newWord , $newprodname); ?> <!--eof Modified Product Name Constructor--> <!--bof Product Name--> <h1 id="productName" class="productGeneral"><?php echo $newprodname; ?></h1> <!--eof Product Name-->