Hi Jan
Long time which means everything works rather well
Problem is not urgent but strange.
I just updated to Joomla! 4.4.1 Stable and I run PHP 8.2.12 with 10.6.15-MariaDB-log.
After the update, I added 2 products and noticed a strange behavior with the language switcher. I checked much older products (added under Joomla 3.x) and there are identical problems. Some work, some don't switch languages as expected. I really don't know if this problem exists since the update or already much longer, Sorry!
Problem is:
when I am on the actual product page (where I can order) and I want to switch languages (DE -> EN or EN -> DE), some products work fine and others send me to the home page of the other language and there just add the products at the end.
The links the language switcher gets are different for different products. Example:
This one works fine!
Whale Shark Adoption German Link (actual page): https://hai.swiss/shop-de/13-hai-patens ... atenschaft
Whale Shark Adoption English Link (language switcher): https://shark.swiss/shop-en/12-shark-ad ... k-adoption
This one sends me to the home page
Blue Shark Adoption German Link (actual page): https://hai.swiss/shop-de/13-hai-patens ... atenschaft
Blue Shark Adoption English Link (language switcher): https://shark.swiss/component/phocacart ... Itemid=257
Its the same for DE -> EN or EN -> DE
It seems, some product pages add ?catid=AB:shark-adoptions&Itemid=XYZ and some don't. The ones that don't work perfectly.
I checked the configuration of the products and the database entries for the products and there don't seem to be any differences.
Any idea?
Kind regards
Alexander
Strange behavior: product links and language switcher
-
- Phoca Enthusiast
- Posts: 79
- Joined: 15 Jan 2020, 17:36
- Jan
- Phoca Hero
- Posts: 48398
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Strange behavior: product links and language switcher
Hi, the last link seems like not a SEF link. So, where there will be some problem, maybe it will in menu links - all should be checked - if there is main menu link to both languages, if they all have right language set in menu link, etc. etc.
There were similar topics in this forum where the problem was cused by menu link
Jan
There were similar topics in this forum where the problem was cused by menu link
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 79
- Joined: 15 Jan 2020, 17:36
Re: Strange behavior: product links and language switcher
Hi Jan
SEF URLs seems to be a binary configuration and it works on my other pages. On/Off -> so how can there be a mix up between SEF and Non-SEF in the same category? Some work as expected when switching languages and some don't.
I did not understand your idea with the menu links. As far as I can tell I just click the (Main?) menu to switch languages. Otherwise I a navigating within the Phoca modules. How can I check if there are correct menus? Which menus?
Kind regards
Alexander
SEF URLs seems to be a binary configuration and it works on my other pages. On/Off -> so how can there be a mix up between SEF and Non-SEF in the same category? Some work as expected when switching languages and some don't.
I did not understand your idea with the menu links. As far as I can tell I just click the (Main?) menu to switch languages. Otherwise I a navigating within the Phoca modules. How can I check if there are correct menus? Which menus?
Kind regards
Alexander
- Jan
- Phoca Hero
- Posts: 48398
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Strange behavior: product links and language switcher
Hi, regarding menu links. SEF in Joomla is based on menu links, so it is important to have right menu links to each language variant (and such should be connected to each other. The best way is always have only one menu link to Phoca Cart (best to categories view) for each language.
Because it seems the link for the second language cannot find its menu link alias
Jan
Because it seems the link for the second language cannot find its menu link alias
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 79
- Joined: 15 Jan 2020, 17:36
Re: Strange behavior: product links and language switcher
Hi Jan
SEF usually works perfectly on my site, no problems except some! phoca products. Multilanguage works well. I checked the Menus. I have a menu item for categories in DE and EN. On the categories level language switching works perfectly. It is just some products that produce not SEF links (even some products within the same category), others work well
I compared the products and their configurations did not show any significant differences that might be the cause for this behavior.
The page links look perfect, only the language switcher gets the NON SEF link.
Any idea what else I could check?
Alexander
SEF usually works perfectly on my site, no problems except some! phoca products. Multilanguage works well. I checked the Menus. I have a menu item for categories in DE and EN. On the categories level language switching works perfectly. It is just some products that produce not SEF links (even some products within the same category), others work well
I compared the products and their configurations did not show any significant differences that might be the cause for this behavior.
The page links look perfect, only the language switcher gets the NON SEF link.
Any idea what else I could check?
Alexander
- Jan
- Phoca Hero
- Posts: 48398
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Strange behavior: product links and language switcher
Hi, in this forum, there were some posts regarding similar problems.
The problem was always missing osme assignation, etc.
- e.g. there should be menu groups for all language
- there should be e.g. menu link to categories view of Phoca Cart and the same for different language and both should be assigned
- the categories should be assigned too - category for one language should be assigned to category for another language
- all products need to be assigned too.
The problem was always missing osme assignation, etc.
- e.g. there should be menu groups for all language
- there should be e.g. menu link to categories view of Phoca Cart and the same for different language and both should be assigned
- the categories should be assigned too - category for one language should be assigned to category for another language
- all products need to be assigned too.
If you find Phoca extensions useful, please support the project