To add multiple store:
To add multiple store:
create one root category name it as "magento2"
and add subcategory into it.
now go to system manage stores
create a new website example "magento"
and add store name and store view name to the website
create a sub-directory folder magento2.
Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder
Open your index.php file and look for the following line
"$mageFilename = ‘app/Mage.php’;"
Change it to
$mageFilename = ‘../app/Mage.php’;
and in the last you will get this line,comment it
//Mage::run($mageRunCode, $mageRunType);
Mage::run("magento2", $mageRunType);
//magento 2 is the name of the store
make sure the name of $mageRunCode (here we using magento2) will be same as the Code in store view (Code * : "magento2")
create one root category name it as "magento2"
and add subcategory into it.
now go to system manage stores
create a new website example "magento"
and add store name and store view name to the website
create a sub-directory folder magento2.
Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder
Open your index.php file and look for the following line
"$mageFilename = ‘app/Mage.php’;"
Change it to
$mageFilename = ‘../app/Mage.php’;
and in the last you will get this line,comment it
//Mage::run($mageRunCode, $mageRunType);
Mage::run("magento2", $mageRunType);
//magento 2 is the name of the store
make sure the name of $mageRunCode (here we using magento2) will be same as the Code in store view (Code * : "magento2")
Thanks Buddy :)
ReplyDeleteand share Your Information :)