VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: lliseil on September 05, 2012, 21:51:03 PM

Title: [SEO] Vm2 subcategory must have an entry menu to show up
Post by: lliseil on September 05, 2012, 21:51:03 PM
Vm2.0.10 / Joomla 2.5.6
Linux      2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64
MySQL      5.1.61 (utf8_general_ci)
PHP      5.3.3
Apache2 (apache2handler)

Got a quite strange URL rewritting behaviour. Strange in the sense that

Since it works for all sub-categories but one, the issue shouldn't be caused by the way the link to the product page is generated \components\com_virtuemart\views\category\tmpl\default.php ([VM2.0.8c & J!2.5.6] ***BUG**** SEO enabled not working properly (https://forum.virtuemart.net/index.php?topic=104846.0)]
Also nothing related to capricornio's Topic: Enabling SEO leads to strange behaviour (https://forum.virtuemart.net/index.php?topic=104470.0)
Rebuilding the menu / menu entries changed nothing

So just a reminder than one has to create a menu entry to each of the Virtuemart2's sub-sub-categories to make them work as they should with SEO: ON.


EDIT : message's content simplified and links removed, title hopefully reflect the subject better
Title: Re: Yet another SEO strange behaviour (and its working solution)
Post by: jjk on September 05, 2012, 23:34:58 PM
You seem to have enabled 'Adds Suffix to URL' in Joomla configuration and I suppose you have deleted the 'Seo Suffix' in VM2 'Configuration' - 'SEO Settings'. If this is true, make it the other way round. Disable the suffix in Joomla and add the "-details" or "html" in VM2 SEO configuration. Since the product details page in VM2 is accessible via different urls, VM2 needs a suffix to determine that it is on a product details page. If VM2 SEO field is empty, the router can't work in certain cases.
Title: Re: Yet another SEO strange behaviour (and its working solution)
Post by: lliseil on September 06, 2012, 21:11:37 PM
thank you jjk for the advice.
Actually both joomla 'html' and Vm2 'detail' were activated as we didn't see them as conflicting up to now ('detail' being for the product detail page). Now it doesn't look as linked to this SEO issue, which happens on sub-categories.
And only for one of them (which is what we find to be rather strange).
And while it looked like a Joomla "Category" SEO Menu first (which happened for many Joomla 1.7 and 2.5 especially migrated from 1.5), it disappears when deactivating Vm2 SEO, AND when creating entries for the 4 sub-categories at fault.