VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: patrik60 on July 24, 2013, 18:24:35 PM

Title: Problem in VM Search module
Post by: patrik60 on July 24, 2013, 18:24:35 PM
This post may be related to other posts in this forum: There is a problem with the limit set in the FE when searching a product and displaying the number of products per page. The problem seems to be in the VM search module. As soon as "Search Button" is set to Yes and "Search button as image" is also set to yes the limit display always changes to the lowest number of the settings in the configuration. The quantity of products changes correctly. Therefore it is not possible to select the lowest number of products.
See attached images. It only happens when "Search button as image" is selected, no problem when this option is disabled.

[attachment cleanup by admin]
Title: Re: Problem in VM Search module
Post by: patrik60 on August 02, 2013, 12:29:17 PM
This problem started with VM 2.0.18b. It worked fine until VM 2.0.18a
Title: Re: Problem in VM Search module
Post by: patrik60 on August 02, 2013, 13:33:20 PM
Changes (Vm 2.0.18a -> VM 2.0.18b) which cause this problem were made in administrator/components/com_virtuemart/helpers/vmmodel.php between lines 699 - 710:

699: $limits[]=JHtml::_('select.option', JRoute::_( $link.'&limit='. $items, false), $items);

706: $limits[] = JHtml::_('select.option',JRoute::_( $link.'&limit='. $i*$this->_perRow, false) ,$i*$this->_perRow );

709: $limits[] = JHTML::_('select.option',JRoute::_( $link.'&limit='. $this->_perRow * 10, false) , $this->_perRow * 10 );

710: $limits[] = JHTML::_('select.option',JRoute::_( $link.'&limit='. $this->_perRow * 20, false) , $this->_perRow * 20 );

It works again in VM 2.0.18b when deleting all false.

In version 2.0.22a I deleted also all these between line 715 - 728. But I don't know wether this could cause other problems.
Title: Re: Problem in VM Search module
Post by: patrik60 on August 21, 2013, 15:01:57 PM
This problems remains after updating to VM 2.0.22b
Title: Re: Problem in VM Search module
Post by: Maxim Pishnyak on August 21, 2013, 16:32:58 PM
Did you make menu item for VM frontpage?
Title: Re: Problem in VM Search module
Post by: patrik60 on August 21, 2013, 17:21:13 PM
For shure, I'm using VM 2 since the very first day and as I told you the problem started with  the version 2.0.18b.
Title: Re: Problem in VM Search module
Post by: Maxim Pishnyak on August 21, 2013, 20:03:39 PM
So this allows you ignore any recommendations from me?
Title: Re: Problem in VM Search module
Post by: patrik60 on August 21, 2013, 23:40:11 PM
QuoteSo this allows you ignore any recommendations from me?

?? Which recommendations do I ignore ??
Title: Re: Problem in VM Search module
Post by: Maxim Pishnyak on August 22, 2013, 17:38:47 PM
Quote from: Maxim Pishnyak on August 21, 2013, 16:32:58 PM
Did you make menu item for VM frontpage?
Title: Re: Problem in VM Search module
Post by: patrik60 on August 22, 2013, 18:03:09 PM
QuoteFor sure...

:)
Title: Re: Problem in VM Search module
Post by: Maxim Pishnyak on August 22, 2013, 18:18:40 PM
Ah!

Wonna pm me access?
Title: Re: Problem in VM Search module
Post by: patrik60 on August 23, 2013, 14:08:23 PM
Please check this video:

www.youtube.com/watch?v=Gww5m3c5K5k

It's a clean Joomla 2.5.14 with only VM, no other extensions.
Title: Re: Problem in VM Search module
Post by: patrik60 on September 09, 2013, 18:20:54 PM
This proble is still not solved, using VM 2.0.22d and also for this problem (http://forum.virtuemart.net/index.php?topic=117444.msg400411#msg400411) there is no solution.
I would appreciate it very much if this could be checked.

Regards
Patrik
Title: Re: Problem in VM Search module
Post by: patrik60 on October 01, 2013, 19:48:22 PM
Solved now in version 2.0.24

Thanks and regards
Patrik