Created
November 13, 2013 06:07
-
-
Save redesigned/7444487 to your computer and use it in GitHub Desktop.
Magento Website and Theme Switching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Set the website based on the domain name #### | |
SetEvnIf Host ^www\.domain1\.com$ MAGE_RUN_CODE=website_one_code MAGE_RUN_TYPE=website | |
SetEvnIf Host ^www\.domain1\.com$ MAGE_RUN_CODE=website_two_code MAGE_RUN_TYPE=website |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Admin>System>Configuration>Design>Themes>Default> | |
Add Exception for mobile theme: | |
iPhone|iPod|BlackBerry|Pre|Palm|Googlebot-Mobile|mobi|Safari Mobile|Windows Mobile|Android|Opera Mini|mobile | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Fancy Store Switcher */ | |
if (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'wholesale.tayloredexpressions.com') { $mageRunCode = 'wholesale'; } else { $mageRunCode = 'default'; }; | |
/* Fancy Store Switcher */ | |
if (isset($_COOKIE['magento_website']) && $_COOKIE['magento_website'] == 'usa') { $mageRunCode = 'defaultusa'; $_COOKIE['magento_website'] = 'usa'; } else { $mageRunCode = 'default'; $_COOKIE['magento_website'] = 'canada'; }; | |
/* Fancy Store Switcher */ | |
if (isset($_COOKIE['currency_code']) && $_COOKIE['currency_code'] == 'CAD') { $mageRunCode = 'ca'; } else { $mageRunCode = 'us'; }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment