VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Muszti on July 07, 2013, 13:49:20 PM

Title: SEF url-s not working with translated categories
Post by: Muszti on July 07, 2013, 13:49:20 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: 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.
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 07, 2013, 16:07:05 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: Maxim Pishnyak on July 07, 2013, 17:05:30 PM
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!
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 07, 2013, 19:27:38 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: Maxim Pishnyak on July 07, 2013, 22:36:33 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: 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.
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.
Title: Re: SEF url-s not working with translated categories
Post by: Maxim Pishnyak on July 09, 2013, 11:32:18 AM
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, ...
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 09, 2013, 16:26:27 PM
Ok. See this picture and tell me I'm not insane.
(http://s23.postimg.org/6rhsbtae3/jommlaerror.jpg)

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.
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 09, 2013, 16:51:08 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 09, 2013, 17:12:30 PM
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
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 09, 2013, 17:44:06 PM
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
Title: Re: SEF url-s not working with translated categories
Post by: Maxim Pishnyak on July 09, 2013, 20:00:01 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 09, 2013, 21:03:30 PM
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
Title: Re: SEF url-s not working with translated categories
Post by: Muszti on July 09, 2013, 21:09:23 PM
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.
Title: Re: SEF url-s not working with translated categories
Post by: jjk on July 09, 2013, 22:06:35 PM
@Muszti
Somehow you seem to have messed up your multilanguage category and multilanguage menu configuration. If you turn off SEF urls for a while, it might be easier for us too see what you made wrong.

A normal non-SEF url to a VM2 category looks like this:
http://proba.hermex.hu/index.php?option=com_virtuemart&view=category&virtuemart_category_id=6&Itemid=127&lang=en
Also see here:
http://forum.virtuemart.net/index.php?topic=116282.msg391928#msg391928

Did you follow this tutorial to check your settings? http://docs.virtuemart.net/tutorials/36-multilingual-store/99-multilanguage-setup.html

BTW - I've also noticed that you have 7 categories in your menu, but 8 categories in your category browse page. So apparently one menu item is missing. This can cause malfunctions in the Joomla/VM2 routers (the code which produces the SEF urls).