VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: angelo on December 17, 2012, 10:20:11 AM

Title: ASK A QUESTION productdetails SEO problem
Post by: angelo on December 17, 2012, 10:20:11 AM
Joomla 2.5.8 and VM2.0.14
Joomla 2.5.8 and VM2.0.15d
On two different VM2 sites we have the problem that the 'ask a question' works fine for English but when using another language the 'aks a question';  link opens the product category instead. If we disable the seo everything works fine.
The faulty link has COM_VIRTUEMART_SEF_BY=sef_op?tmpl=component at the end instead of ?tmpl=component.
Thanks for any help!
Title: Re: ASK A QUESTION productdetails SEO problem
Post by: tzahariev on December 17, 2012, 11:41:47 AM
Hi what do you mean with "disable SEO". I thin that you disabled some plugin like wordpress's "all in one seo pack" or something like that? look into tha main php file :)
Title: Re: ASK A QUESTION productdetails SEO problem
Post by: jjk on January 01, 2013, 16:07:52 PM
Are you using a third party SEF extension?
The non-sef url for the 'Ask a question about this product' should look like this:
...yourdomain/index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=1001&virtuemart_category_id=2&tmpl=component&lang=en
...yourdomain/index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=1001&virtuemart_category_id=2&tmpl=component&lang=de

If you don't have the language tag at the end, something in your Joomla or VirtueMart language configuration is wrong.
Title: Re: ASK A QUESTION productdetails SEO problem
Post by: angelo on January 02, 2013, 14:19:52 PM
Hello,

thanks for your reply.
We have checked the Virtuemart SEO settings and have altered the 'Translate strings' setting from enabled to disabled.
The problem has gone now, but now the strings are not translated.
The same problem is also when a price is not displayed and there is a link to ask for a price.
So is this a bug?

Title: Re: ASK A QUESTION productdetails SEO problem
Post by: jjk on January 02, 2013, 19:44:13 PM
I'm pretty shure the problem is a missing quote (") in the dutch ...\language\nl-NL\nl-NL.com_virtuemart.sef.ini
Check line 15
Note: When you edit the file, make shure your editor saves it encoded as UTF-8 - No BOM
Title: Re: ASK A QUESTION productdetails SEO problem
Post by: angelo on January 07, 2013, 13:22:08 PM
Hello JJK,
it is SOLVED!!!!
It was indeed a missing quote in line 15of the nl-NL.com_virtuemart.sef.ini language file.
Thank you very much.

Kind regards, Angelo