VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: optmax on July 24, 2013, 17:13:41 PM

Title: Limit Box does not work if Initial number of listed items is set
Post by: optmax on July 24, 2013, 17:13:41 PM
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.
Title: Re: Limit Box does not work if Initial number of listed items is set
Post by: pixelhexe on August 13, 2013, 23:41:29 PM
- 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.
Title: Re: Limit Box does not work if Initial number of listed items is set
Post by: Maxim Pishnyak on August 14, 2013, 08:31:06 AM
It's intended to work so. Category Configuration > VM Configuration.
Title: Re: Limit Box does not work if Initial number of listed items is set
Post by: pixelhexe on August 14, 2013, 10:43:36 AM
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
Title: Re: Limit Box does not work if Initial number of listed items is set
Post by: Maxim Pishnyak on August 14, 2013, 22:35:42 PM
Yes, before you adjust limit box value for category, VM configuration value will be used.

Also did you check thread about fix in pagination?