Redirect to mainpage after change language

«StartZurück12WeiterEnde»
25.05.2011 02:05
#1
Netboard
Joomshopping forum user no avatar
Name: Netboard
19.05.2011
Posts: 12
Quote
Redirect to mainpage after change language

Hello,

When I change language on product page or caregory page it redirect to mainpage. But here demo site doesn't have this problem, it redirect to same page.

How can I solve this probem ?

thanks


Joomla: 1.6.3
JoomShopping: 1.3.3
PHP: 5
MySQL: 5
 
28.05.2011 22:10
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Redirect to mainpage after change language

only shop page?
joomla page?

 
31.05.2011 13:06
#3
Netboard
Joomshopping forum user no avatar
Name: Netboard
19.05.2011
Posts: 12
Quote
Aw: Redirect to mainpage after change language

All pages return to mainpage doesn't matter which page you are. But in demo shop on your site doesn't return to mainpage.

How can I solve this issue ?

 
31.05.2011 14:09
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Redirect to mainpage after change language

Demo site - joomla 1.5 + joomfish.

 
31.05.2011 14:49
#5
Netboard
Joomshopping forum user no avatar
Name: Netboard
19.05.2011
Posts: 12
Quote
Aw: Redirect to mainpage after change language

Can we use joomfish+joomshopping+joomla 1.6.3 ?

thanks

 
31.05.2011 20:05
#6
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Redirect to mainpage after change language

joomfish for joomla 1.5

 
01.06.2011 09:35
#7
Netboard
Joomshopping forum user no avatar
Name: Netboard
19.05.2011
Posts: 12
Quote
Aw: Redirect to mainpage after change language

Ok.

thanks

 
05.10.2011 00:16
#8
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: Redirect to mainpage after change language

What about with joomshopping 3.2.7 and joomla 1.7?

I have joomshopping products, categories and so on in german and english, but if i switch the joomla language switcher from one language into the other language, the product view redirect always to the home. The jomla articles like terms and conditions, about us and so on have the same issue. If i switch the language, the homepage redirect always to home.

What the example shops on maxxmarketing do others?


Joomla: 1.7
JoomShopping: 3.2.7
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com/
 
03.01.2012 15:55
#9
gatopardos
Joomshopping forum user no avatar
Name: george
02.12.2011
Posts: 7
Quote
Aw: Redirect to mainpage after change language

hey how did u manage to do this ??

http://watches-germany.com/de/

it doesn't work with joomla language switcher ...

 
14.01.2012 10:48
#10
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: Redirect to mainpage after change language

I have updated to joomshopping 3.3.2 and use joomla 1.7.3 - but there are not solution for language switcher. i can not watch an product and switch the language. After switching language the homepage goes always to home, lost focus to last product.

In demo shop of joomshopping language switching works, but in new joomshopping 3.3.2 it is not working... any ideas?


Joomla: 1.7.3
JoomShopping: 3.3.2
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com/

Letzte Änderung: 14.01.2012 10:49
 
08.02.2012 15:03
#11
cornarie
User cornarie
Name: Cees van Doorn
06.06.2011
Posts: 48
Quote
Aw: Redirect to mainpage after change language

I have the same problem, I think
One language is Dutch and the tab "Onze Kinderen" works as it should, and I can reach the children of the three centres but when I change to English and click the tab Our Children, you see the same page as in Dutch, but when you click one it's redirected to a random page in Dutch.
I filled the translatio field as it should.

See : www.S2sinternational.org

Does anyone has a solution


Joomla: 2.5.1
JoomShopping: 3.2.3
Website Url: www.s2sinternational.org
 
09.02.2012 18:23
#12
cornarie
User cornarie
Name: Cees van Doorn
06.06.2011
Posts: 48
Quote
Aw: Redirect to mainpage after change language

I solved these problems by updating Joomshopping "step by step" from 3.2.3 to 3.4.2
The switcher works properly now as you can see.
Only the controlpanel looks different when I use IE9, in GoogleChrome it's as before. But I can live with that.


Joomla: 2.5.1
JoomShopping: 3.4.2
Website Url: www.s2sinternational.org
 
21.10.2012 22:14
#13
bommel1302
Joomshopping forum user no avatar
Name: Marcel Böhm
30.10.2011
Posts: 8
Quote
Aw: Redirect to mainpage after change language

Hello,
i have the same Problem but I find a solution for it.
The Problem is the activated SEF URL in your configuration.
I have deactivat it an it works fine.

Best regards,
Marcel

 
16.01.2014 11:03
#14
test 34
Joomshopping forum user no avatar
Name: test
16.01.2014
Posts: 2
Quote
Aw: Redirect to mainpage after change language

Hi ,

I am using joomshopping version 4.2.2 and joomla 3.1. When I click on language switcher it redirect me to the home page when I am on the product page.
Also I have tried by setting SEO friendly urls setting to NO , but still same issue.

How I can solve this issue?

Thanks


Joomla: 3.1
JoomShopping: 4.2.2
PHP: 5.3
MySQL: 5.5
 
17.01.2014 13:45
#15
22
Joomshopping forum user no avatar
Name: n
17.01.2014
Posts: 1
Quote
Aw: Redirect to mainpage after change language

test 34 - 16.01.2014 11:03
Hi ,

I am using joomshopping version 4.2.2 and joomla 3.1. When I click on language switcher it redirect me to the home page when I am on the product page.
Also I have tried by setting SEO friendly urls setting to NO , but still same issue.

How I can solve this issue?

Thanks


 
18.01.2014 13:56
#16
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16475
Quote
Aw: Redirect to mainpage after change language

Use assigne for menu item.

 
18.03.2014 10:21
#17
test 34
Joomshopping forum user no avatar
Name: test
16.01.2014
Posts: 2
Quote
Aw: Redirect to mainpage after change language

Hi Admin,

Thanks for reply. But I have a query , If I have 1000 products means I have to create 1000 menu items for it?

 
07.09.2015 17:21
#18
toannetsoft
Joomshopping forum user no avatar
Name: Steve Toan
01.04.2012
Posts: 1
Quote
Aw: Redirect to mainpage after change language

Fix bug Joomla 3.x.x and JoomShopping latest:

File: /modules/mod_languages/helper.php
Line 32:


public static function getList(&$params)
{
$user = JFactory::getUser();
$lang = JFactory::getLanguage();
$languages = JLanguageHelper::getLanguages();
$app = JFactory::getApplication();
$menu = $app->getMenu();
$component = JRequest::getVar('option');

// Get menu home items
$homes = array();
$homes['*'] = $menu->getDefault('*');

foreach ($languages as $item)
{
$default = $menu->getDefault($item->lang_code);

if ($default && $default->language == $item->lang_code)
{
$homes[$item->lang_code] = $default;
}
}

// Load associations
$assoc = JLanguageAssociations::isEnabled();

if ($assoc)
{
$active = $menu->getActive();

if ($active)
{
$associations = MenusHelper::getAssociations($active->id);
}

// Load component associations
$class = str_replace('com_', '', $app->input->get('option')) . 'HelperAssociation';
JLoader::register($class, JPATH_COMPONENT_SITE . '/helpers/association.php');

if (class_exists($class) && is_callable(array($class, 'getAssociations')))
{
$cassociations = call_user_func(array($class, 'getAssociations'));
}
}

$levels = $user->getAuthorisedViewLevels();

// Filter allowed languages
foreach ($languages as $i => &$language)
{
// Do not display language without frontend UI
if (!array_key_exists($language->lang_code, MultilangstatusHelper::getSitelangs()))
{
unset($languages[$i]);
}
// Do not display language without specific home menu
elseif (!isset($homes[$language->lang_code]))
{
unset($languages[$i]);
}
// Do not display language without authorized access level
elseif (isset($language->access) && $language->access && !in_array($language->access, $levels))
{
unset($languages[$i]);
}
else
{
$language->active = ($language->lang_code == $lang->getTag());

if (JLanguageMultilang::isEnabled())
{
if (isset($cassociations[$language->lang_code]))
{
$language->link = JRoute::_($cassociations[$language->lang_code] . '&lang=' . $language->sef);
}
elseif (isset($associations[$language->lang_code]) && $menu->getItem($associations[$language->lang_code]))
{
$itemid = $associations[$language->lang_code];
$language->link = JRoute::_('index.php?lang=' . $language->sef . '&Itemid=' . $itemid);
}
else
{
if ($language->active)
{
$language->link = JUri::getInstance()->toString(array('scheme', 'host', 'port', 'path', 'query'));
}
else
{
if($component == 'com_jshopping'){
$link = JUri::getInstance()->toString(array('scheme', 'host', 'port', 'path', 'query'));
if($language->lang_code == 'en-GB'){
$link = str_replace('index.php/da', 'index.php', $link);
}
else{
$link = str_replace('index.php', 'index.php/da', $link);
}
$language->link = $link;
}
else{
$itemid = isset($homes[$language->lang_code]) ? $homes[$language->lang_code]->id : $homes['*']->id;
$language->link = JRoute::_('index.php?lang=' . $language->sef . '&Itemid=' . $itemid);
}
}
}
}
else
{
$language->link = JRoute::_('&Itemid=' . $homes['*']->id);
}
}
}

return $languages;
}


Joomla: 3.x
JoomShopping: 4.10.x
 
04.01.2016 14:21
#19
WYSIWYG
User WYSIWYG
Name: tap
10.11.2011
Posts: 72
Quote
Aw: Redirect to mainpage after change language

@toannetsoft
Thanks for the solution. Unfortunately it's not working in the latest release of Joomla. And besides that, hacking core files is not a good idea, because they will get overwritten sooner or later.

@Webdesigner
Can you please provide a solution, without having a menu entry each product and each language?
It must be possible to switch language without beeing redirected to the homepage, but instead stay on the product page.

Thank you very much!


Joomla: 3.4.8
JoomShopping: 4.x

Letzte Änderung: 04.01.2016 14:28
 
11.05.2016 07:58
#20
lefox
Joomshopping forum user no avatar
Name: mike
14.04.2012
Posts: 1
Quote
Aw: Redirect to mainpage after change language

any solutions? thanks

 
«StartZurück12WeiterEnde»
Copyrights MAXXmarketing GmbH. All Rights Reserved