News:

Looking for documentation? Take a look on our wiki

Main Menu

For those with listbox problems using seo (vm 2.0.6)

Started by randomdev, October 02, 2012, 05:39:41 AM

Previous topic - Next topic

randomdev

With seo enabled listbox was not showing correct selection, I finally figured out the reason:
Make sure there is no spaces in your listbox list in virtuemart config (perhaps the devs can do some input validation for this).

The reason?
in vmmodel.php there is a statement: $sequenceArray = explode(',', $sequence);
So for items with spaces these will be included with the number e.g. ' 24'

If there is spaces when these numbers are made into links they are changed into a + symbol
e.g. /products/category?limit=24 would become /products/category?limit=+24 which breaks the comparison for choosing which item should be selected.

Hope this helps someone as I had been tearing my hair our trying to find the cause of my problem.