1

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');

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
Taker
  • 11
  • 2

1 Answers1

0

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;

?>
`
Taker
  • 11
  • 2