1

I am setting up a second website on my magento system. Eventually this will have its own domain name and be hosted in my main magento installation.

To allow me some time to finalise the domain name and test some themes I would like to set up the new website under my "dev" magento as a SECOND WEBISTE. (ie run multiple websites with a common backend)

I have been reading various websites to get information and I have done the following. 1. Installed a new theme "diyalarms" (copied the current theme from my current website with a new name of "diyalarms" from origial theme files I purchased)

  1. Created a new Website, Store, View with the code "diyalarms"

  2. Under General/Web I - 1. Changed scope to diyalarms, 2. changed unsecure & secure urls to diyalarms.ozfitsports.com.au and unchecked use defaults.

  3. In Cpanel created a new subdomain diyalarms.ozfitsports.com.au and pointed to /dev

  4. Added the following to index.php

    switch($_SERVER['HTTP_HOST']) {
    
        case 'diyalarms.ozfitsports.com.au':
    
            $mageRunCode = 'diyalarms';
    
            $mageRunType = 'website';
    
        break;
    }
    
  5. Under System/design created a Design for View "diyalarms" by selecting theme from dropdown box.

Typing in diyalarms.ozfitsports.com.au open with what appears to be the "default" magento theme, not the theme "diyalarms" which should look the same as "ozfitsports.com.au" which is where I copied the theme from.

I have spent 6hrs searching the web and can't seem to find anything that I havnet already done.

I woudl really appreciate any suggestions as to what I have done wrong or have missed. I am using magento ce 1.6.1

Thanks

closed as off-topic by David Manners, kab8609, Fabian Schmengler, James Anelay - TheExtensionLab, Keyul Shah Feb 17 '15 at 15:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – David Manners, kab8609, Fabian Schmengler, James Anelay - TheExtensionLab, Keyul Shah
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    and I hope you are clearing the cache after making those config changes? – Kalpesh Jun 22 '14 at 16:40
  • Check if you don't have design changes applied in time periods. You can do this in System > Design. Check if you don't have overriden pages theme individually. – versedi Feb 17 '15 at 15:35
0

My suspicion is that it might not be running the correct store.

To test this out go to a page in your original theme and echo out the store code to make sure.

Here is the code to test this:

$storeCode = Mage::app()->getStore()->getCode();  // Gets the current store's code

$storeName = Mage::app()->getStore()->getName();  // Gets the current store's name

$store = Mage::app()->getStore();  // Gets the current store's details

$store->getData();

Not the answer you're looking for? Browse other questions tagged or ask your own question.