Multistore / Selected color

Hi. We run this template in multistore. We deactivated in top.phtml navigation the user-option to choose a color. Now, how can we define that store A allways runs in red, store B runs in blue and store C runs in orange, store D runs in blue, etc…? Thanks in advance!

2 answers

Profile photo of thangnn1510 0.00 $tone July 5, 2011
Public

Dear Grauf Manuel!

Thanks for sharing me the info. I have tried and tested in your site. Please replace this code:

Code:

$_params->set('ja_color','default');//'default','red','orange','green'

by:

Code:

if(Mage::app()->getStore()->getCode() == "uno_french"){

$_params->set('ja_color','red');//'default','red','orange','green'

}else if(Mage::app()->getStore()->getCode() == "uno_german"){

$_params->set('ja_color','green');//'default','red','orange','green'

}else{

$_params->set('ja_color','orange');//'default','red','orange','green'
	
}

in /app/design/frontend/default/your_store/template/page. You could also change color in each part of above code to suit your idea.

Tell us if you still need more help.

Thank you.

#2

Please login or Register to Submit Answer

Written By

Comments