Какой то модуль (внизу написано какой у вас заменил стандартный )
if (!isset($this->request->get['route'])) {
$data['redirect'] = $this->url->link('common/home');
} else {
$url_data = $this->request->get;
$route = $url_data['route'];
unset($url_data['route']);
$url = '';
if ($url_data) {
$url = '&' . urldecode(http_build_query($url_data, '', '&'));
}
$data['redirect'] = $this->url->link($route, $url, isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1')));
}
На г.. код
if (!isset($this->request->get['route'])) {
$data['redirect_route'] = 'common/home';
$data['redirect_query'] = '';
$data['redirect_ssl'] = '';
} else {
$url_data = $this->request->get;
unset($url_data['_route_']);
$route = $url_data['route'];
unset($url_data['route']);
$url = '';
if ($url_data) {
$url = '&' . urldecode(http_build_query($url_data, '', '&'));
}
$data['redirect_route']=$route;
$data['redirect_query']=$url;
$data['redirect_ssl']=$this->request->server['HTTPS'];
}
Занавес
Как оказалось это бы не стандарт jazz
<file path="catalog/controller/common/language.php">
<operation>
<search trim="true" index="0"><![CDATA[$data['redirect'] = $this->url->link('common/home');]]></search>
<add position="replace" trim="false" offset="0"><![CDATA[ $data['redirect_route'] = 'common/home';
$data['redirect_query'] = '';
$data['redirect_ssl'] = '';]]></add>
</operation>
<operation>
<search trim="true" index="0"><![CDATA[$data['redirect'] = $this->url->link($route, $url, $this->request->server['HTTPS']);]]></search>
<add position="replace" trim="false" offset="0"><![CDATA[ $data['redirect_route']=$route;
$data['redirect_query']=$url;
$data['redirect_ssl']=$this->request->server['HTTPS'];]]></add>
</operation>
Как и предполагалось
Вот что такое делать не стандартно, это называется костыли
Вот откуда г.. тема Fastore будет знать об ваших переменных у себя в шаблоне переключателя языка ?