MeenakshiSundaram R
MeenakshiSundaram R

Reputation: 2837

How to change theme for magento multiple store?

I'm using magento 1.7.0.2.

I follow this Tutorial for creating website in my local machine.

Default magento url is: http://localhost/magento

My new site url is : http://localhost/magento/newsite

Now i have to change the "THEME" for the new site.

I've tried these method:

Method 1:

  1. system -> configuration
  2. Change the current configuration scope to my new site.
  3. General -> Design ->theme (give the theme name modern for Templates

Method 2:

  1. system -> Design -> Add design

  2. select my site and theme (modern)

But the theme didn't change it always take the theme which i given for the default config.

How to set Different theme for different site form single back-end.

Is there any way to change theme??

Cheers

Upvotes: 2

Views: 4277

Answers (1)

MeenakshiSundaram R
MeenakshiSundaram R

Reputation: 2837

I got the answer,

"I make a mistake here"

In the new store "index.php" file u need to change the content like.

umask(0);
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '<your site code>';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'website';

Now i fix the issue.

Cheers

Upvotes: 2

Related Questions