Limit Box does not work if Initial number of listed items is set

Started by optmax, July 24, 2013, 17:13:41 PM

Previous topic - Next topic

optmax

Joomla 2.5.11
VM 2.0.22a

If  'Initial number of listed items is set' for a Category the no matter what is selected in the Limit box only the number of items set in 'Initial number of listed items is set'  are displayed.

pixelhexe

- same problem on my system (local and remote)
:-(

Joomla 2.5.14
VM 2.0.22a

I can only change the limitbox if I don't set an initial numer of listed items in product category.

Maxim Pishnyak

It's intended to work so. Category Configuration > VM Configuration.
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

pixelhexe

Maxim, thank you for your quick reply.

But I can't believe that's intended to be so - or otherwise the configuration field for initial number in each category would be completely useless and should be eliminated. At least in my system it is not possible to set individual numbers for categories: as soon as the value is greater than 0, the listbox is buggy in product category view.

In the database it's the value of table _virtuemart_categories -> field limit_list_initial

Oh, and I recognized another little detail in /components/com_virtuemart/views/category/templ/default.php :

echo $this->vmPagination->getLimitBox ($this->category->limit_list_step);

is also not working for me if I use another value than 0.

The former version of the code was

echo $this->vmPagination->getLimitBox ();

Actually it's not a problem for me to use the same VM config value in all category views, but nevertheless I am wondering about these fields. It seems to be a risk if you use them (?). At least in my system this point revealed after the upgrade to VM 2.0.22a - in VM 2.0.20b it was not a problem yet.

Best regards
Sabina

Maxim Pishnyak

Yes, before you adjust limit box value for category, VM configuration value will be used.

Also did you check thread about fix in pagination?
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