SEF url-s not working with translated categories

Started by Muszti, July 07, 2013, 13:49:20 PM

Previous topic - Next topic

Muszti

Hi!

On my webpage if I use the original default language (Hungarian) evertihing is ok with product categories:
on this site there is the Virtuemart default view:
http://proba.hermex.hu/hu/termekek.html
When I click on each categories link, it shows the product of the category.

But when I chose a translated language for the site as below:
http://proba.hermex.hu/en/products.html
This is the english version. And if I want to see the products in a chosen category:
Instead of the SEF url-s the link is:
http://proba.hermex.hu/en/component/virtuemart/?Itemid=341

But it should be a SEF url like this:
http://proba.hermex.hu/en/products/hermexnibex-en.html

I translate categories and products with VirtueMart's default properties translater. There is a form for SEF url translation and I used it, but on live frontend the link doesen't use those SEF names.

Please help.
Thanks.

Maxim Pishnyak

Quote from: Muszti on July 07, 2013, 13:49:20 PM
http://proba.hermex.hu/en/products.html
http://proba.hermex.hu/en/component/virtuemart/?Itemid=341
You forgot to create menus, menu items, menu modules and template duplicate for the Hungarian.
Better find in google tutorial how-to-create-multilingual-web-site-in-joomla and follow plan declared there to the dot.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Muszti

That doesen't make sense.
Only the german version has that error you told and it's because I'm still working on it.
Who would like to help me:
Please try hungarian and english languages and avoid german.
Thank you.

Maxim Pishnyak

Quote from: Muszti on July 07, 2013, 16:07:05 PM
That doesen't make sense.
What doesn't make sense? The multilingual methods that are currently working in Joomla?

Oh, boy!
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Muszti

No, sorry for missunderstood.
I was meaning that I cannot understand your help. Maybe you tried german language, because I've tried the english and the url that I gave is also an english version of the site.
It doesn't make a sense to me because if I see the english version, than it is no need to start learning everithing from the beginning.
I mean that maybe you tried german instead the english witch I gave as an url.
If you not trying german, if you trying english than something is wrong as I do not see what you see.

Maxim Pishnyak

It's ok.
Once again.
Quote from: Maxim Pishnyak on July 07, 2013, 15:29:38 PM
Quote from: Muszti on July 07, 2013, 13:49:20 PM
http://proba.hermex.hu/en/products.html
http://proba.hermex.hu/en/component/virtuemart/?Itemid=341
You forgot to create menus, menu items, menu modules and template duplicate for the Hungarian.
Better find in google tutorial how-to-create-multilingual-web-site-in-joomla and follow plan declared there to the dot.
So do you have direct menu item to category "Hermex Mini Precision small drill" for example?

Another thought is that your web site doesn't allow to go into category page from categories page at all.

I'll advise you to give me access to the backend of your web site. I'll check what could be wrong if you interested.

Use private messages of this forum for sending me access information off course.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Muszti

Yes, I have direct menus for the top menu bar and for the left side menu.
Each of them are working properly.
And for the default language it is possible to show products of a category.
Only with the translated site, the categories page is not working properly.
I'm afraid I cannot grant you access for this site.
If anyone else could help without any sensitive data I would be appreciated.

Maxim Pishnyak

#7
Quote from: Muszti on July 09, 2013, 11:21:21 AM
Yes, I have direct menus for the top menu bar and for the left side menu.
On that web page http://proba.hermex.hu/en/component/virtuemart/?Itemid=341
I see words "Hermex Mini Precision small drill" only under "Categories".
So, you're wrong. You didn't create direct menu item for this particular category neither for top menu nor for left side menu.

hmm...
I already advised you to create menu items in malfunctioned language THREE mine posts above!
Quote from: Maxim Pishnyak on July 07, 2013, 15:29:38 PM
You forgot to create ... menu items, ...
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Muszti

Ok. See this picture and tell me I'm not insane.


Maybe you see the site differently than me?

I see there are the translated menu items all are translated to english left and top.
Each one is one of the categories.
And if I click on one, it brings out of the products in that category with no error.

So tell me what you see. Maybe send me an image.

Muszti

Sorry I think I got it:
In the default language the link ends with this:
virtuemart_category_id=7

But in the english (additional) language the category id changes to:
virtuemart_category_id=339

So because the translated category item is an other item than the base item, it just normally doesent have a menu item for it.
And now I understand why did you tell that, but the code is wrong.
Because where I can add the new menu item, on the right hand side there is an option to chose witch category I want to add for menu item,
there are only the hungarian version of categories to choose.
So it makes the links with the category ID = 7 instead of category ID = 339

Anyway I will try to add that link with ID 339 manually as an external link.

Muszti

There is no way to add the ID of the category witch is translated.
I think I must use the built in link forwarding.
This is not a Joomla error, this is VirtueMart translation function error.
You may make the VirtueMart ยป VirtueMart Category view menuitem settings to have the option to chose the category items witch are translated with the built in VirtueMart translator.

Thanks
Muszti

Muszti

Neither redirecting or modifying the ID in the database of the menus are not working.
Please send me a notification if you have a patch for this.
It's important for me.
Thank you:
Muszti

Maxim Pishnyak

Quote from: Muszti on July 09, 2013, 16:51:08 PM
Because where I can add the new menu item, on the right hand side there is an option to chose witch category I want to add for menu item,
there are only the hungarian version of categories to choose.
Change language of you backend to ... another language.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Muszti

Nope. That doesent help on it.
I changed backend language for my account, everithing is in english language exept that important thing.
On VirtueMart Category Layout preferencies at Select a Category * = All items are in the original language (Hungarian) And if I try this anyway the ID is still ID=7 instead of ID=339

Muszti

#14
Cheers!
In the shop configuration at SEO I set SEO Disabled with a tick.

Now it looks like it has no more errors.

But now there's no SEF links, so instead of http://proba.hermex.hu/en/products/bearings.html
it brings out this ugly link:
http://proba.hermex.hu/en/products/view/category/virtuemart_category_id/7.html

So I'm still waiting for a patch.

Thank you.