Reply to comment

Daniel's picture
Daniel (visitor) - Sun, 16/05/2010 - 14:59:

Hi Mike,

I was wanting to know if you ever got this working? I am trying to do the exact setup as you are.
I have successfully set up a multi store environment, but I am unable to share the cart. I know I have something wrong and was hoping you could shed some light on this for me.
We have our own server and have setup the different Url's to point to the root document of the main site. Then I have the other domains parked.

In my index.php I have something like this....

switch($_SERVER['HTTP_HOST']) {
case 'site1.com':
case 'www.site2.com':

$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'site1';
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
Mage::run($mageRunCode, $mageRunType);
break;

Can you tell me how you did it?

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options