I want to get the value from URL parameter store
:
http://localhost/magento_04/?store=angielski2
I tried to do this by $_GET['store']
, but it doesn't work.
I tried also by using:
$language = $this->getRequest()->getParam('store');
I want to get the value from URL parameter store
:
http://localhost/magento_04/?store=angielski2
I tried to do this by $_GET['store']
, but it doesn't work.
I tried also by using:
$language = $this->getRequest()->getParam('store');
Andre! :) I just solved the problem. I spent 4 hours on this issue but the solution was very simple: `
$site_name = "";
$language = $this->getRequest()->getParam('___store');
echo gettype($language);
echo $language;
if ($language== "sweden")
{
echo "costam";
$site_name = "costam";
} else{
$site_name = "somethingelse";
}
echo $site_name;
?>
`