Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

More than one shop
 
erotikpartner
Jr. Member
 
Total Posts:  4
Joined:  2008-07-27
Smedjebaceken
 

Hello

I have more than one shop and until the uppgrade to 1.2.0.1 from 1.2.0, the 1.2.0 worked fine, 2 of my shops don´t work with out sending the shop key.

All the shops has there own domain and i fixed that in index.php like this

switch ($_SERVER['SERVER_NAME'])
{
        
case "b2b.erotikpartner.se":
                
Mage::run('b2b_ep');
                break;
        case 
"shop.erotikpartner.se":
                
Mage::run('b2c');
                break;
        case 
"gayshop.erotikpartner.se":
                
Mage::run('b2c_gay');
                break;
        case 
"porrfilm.cc":
        case 
"www.porrfilm.cc":
                
Mage::run('foxy_ret');
                break;
        case 
"lustshopenhomeparty.se":
        case 
"www.lustshopenhomeparty.se":
                
Mage::run('homeparty_retail');
                break;
        case 
"outlet-dalarna.se":
        case 
"www.outlet-dalarna.se":
                
Mage::run('outlet_sv');
                break;
        default:
                
Mage::run('homeparty_retail');
}

Now,
if i go to the domains b2b.erotikpartner.se or www.lustshopenhomeparty.se they will show the gayshop.erotikpartner.se.
if i go to www.lustshopenhomeparty.se/index.php/homeparty_retail/ it will show the correct shop.
if i go to shop.erotikpartner.se, gayshop.erotikpartner.se or porrfilm.cc it will show the correct shop.

No other changes than uppgrading to 1.2.0.1 from 1.2.0

Any one?!

Best regards,
Roger

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top