Multiple Domains For Single Storefront

Hello, I have an installation with 2 storefronts:

www.modtronix.com

www.netcruzer.com



I would however like to also have www.modtronix.com.au (for Australian customers) link to the www.modtronix.com site. With osCommerce this was easy, and I had www.modtronix.com and www.modtronix.com.au bring up the same site. How do I do this in CS Cart? I do not want a redirection, that is once you type in the www.modtronix.com.au to redirect to www.modtronix.com. I want the addess in the address bar to stay www.modtronix.com or www.modtronix.com.au, but both show exactly the same site.

For $config['http_host'] in config.local.php use $_SERVER['HTTP_HOST'] as the value. Same for 'https_host'. Not sure what version you are discussing, but you might have to do some swizzlling in the DB if you are running multiple storefronts under a single license.

Hi, thanks for reply! But, I think you misunderstood my question. I want to add an additional “Storefront URL” to one of my stores. I have 2 stores configured in CS Cart. One of them has “www.modtronix.com” as it's “Storefront URL” (set in Administation->Stores section of admin area). I want to add an additional “Storefront URL” for this store = www.modtronix.com.au. I want www.modtronix.com and www.modtronix.com.au to both link to the same CS Cart store.



And, the address bar in the browser should show www.modtronix.com or www.modtronix.com.au. So, a redirection will not work, seeing that this will change the address shown in my address bar to the redirected address.



Does anyone know how to do this??

[quote name='djhosken' timestamp='1410416442' post='191926']

Hi, thanks for reply! But, I think you misunderstood my question. I want to add an additional “Storefront URL” to one of my stores. I have 2 stores configured in CS Cart. One of them has “www.modtronix.com” as it's “Storefront URL” (set in Administation->Stores section of admin area). I want to add an additional “Storefront URL” for this store = www.modtronix.com.au. I want www.modtronix.com and www.modtronix.com.au to both link to the same CS Cart store.



And, the address bar in the browser should show www.modtronix.com or www.modtronix.com.au. So, a redirection will not work, seeing that this will change the address shown in my address bar to the redirected address.



Does anyone know how to do this??

[/quote]



I am afraid, there is no way to configure CS-Cart in such a way without additional code modifications.

Cs-cart will consider www.modtronix.com and www.modtronix.com.au to be two separate storefronts (for licensing purposes they are two separate domains). You can share essentially everything so just buy your extra storefront license and add it as a storefront. Did you try what I suggested above using $_SERVER['HTTP_HOST']?

[quote name='tbirnseth' timestamp='1410470315' post='192035']

Cs-cart will consider www.modtronix.com and www.modtronix.com.au to be two separate storefronts (for licensing purposes they are two separate domains). You can share essentially everything so just buy your extra storefront license and add it as a storefront. Did you try what I suggested above using $_SERVER['HTTP_HOST']?

[/quote]



Actually there is no need to buy additional license as the same store will be available through both domains. Second domain can be defined as alias to the main license

Change $config['http_host'] = "www.modtronix.com" and $config['https_host'] = "www.modtronix.com" to $config['http_host'] = $_SERVER['HTTP_HOST']; and $config['https_host'] = $_SERVER['HTTP_HOST']; respectively in config.local.php. That should fix the issue.

cs-cart.com is main website, cs-cart.ru is alias website for the main domain. so, just one license needed? really cool! have cs-cart company confirmed about this? can you clear answer this question eComLabs? please.

The answer is - no. Since different content is used on .ru and .com domains

Are not easier to get subdomain folder for main domain?

Strongly suggest you contact sales@cs-cart.com and ask their licensing people about the specifics of having cs-cart licensed to multiple domains with a single license specific to your needs. Development (non public) domains are allowed. That is one of the reasons that multiple storefronts were implemented back in V3. But MVE is not intended to operate in that fashion.

I was showing that cs-cart domains just for example. but my question is, if there is the same content on both domains with above method. can you clear answer this question eComLabs? please.

If you have same content on both domains and both domains are used on one CS-Cart installation, additional license is not required.