Multiple Sites with Umbraco and Commerce

Aug 24, 2009 at 7:47 PM

I have a thought,

I want to be able to setup multiple sites under one Umbraco instance. I know that this is possible after reading other posts for Umbraco.

Now I need to know if I can create multiple sites with Umbraco with the Commerce for Umbraco extension.

Such as:

store#1.com - Electronic products

store#2.com - apparel products

store#3.com - similar electronic products as store#1.com but different store branding.

Is it possible the way the extension is now, what would need to be done? It'd be so much easier to setup one instance of umbraco and also have my ecommerce clients under one instance to manage them more easily.

Help?

-Shane.

Coordinator
Aug 24, 2009 at 8:28 PM

Shane -

Yep. super easy.  You just need to make a few config entries to wire it up.  In web.config add an entry for each domain:

    <sectionGroup name="commerceDomainConfiguration" type="System.Configuration.SingleTagSectionHandler">
      <section name="domainone.com" allowLocation="true" allowDefinition="MachineToApplication" type="System.Configuration.SingleTagSectionHandler"/>
      <section name="domiantwo.com" allowLocation="true" allowDefinition="MachineToApplication" type="System.Configuration.SingleTagSectionHandler"/>
...

Then specify the config file location for each domain (you can use a single file for all if you like):

  <commerceDomainConfiguration>
    <domainone.com configSource="config\commerce\domainone.com.config" />
    <domaintwo.com configSource="config\commerce\domaintwo.com.config" />
...

And finally, add the specifics for each domain in the corresponding config file:

<domainone.com orderPrefix="domainone order" 
cartUrl="http://domainone.com/cart.aspx"
checkoutUrl="https://domainone.com/checkout.aspx" 
PayPalECsuccessUrl="https://domainone.com/checkout3.aspx"
PayPalECfailUrl="http://domainone.com/cart.aspx" 
loginPage="https://domainone.com/login.aspx"
baseDomain="domainone.com" 
memberType="Customer" 
memberGroup="Customers"
isProduction="true" />
-Paul