VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: toonetcreation on August 07, 2012, 16:03:53 PM

Title: Inventory filter does not work
Post by: toonetcreation on August 07, 2012, 16:03:53 PM
Hello all,

Infos: VM 2.0.8e + Joomla 2.5.6

I think this is a bug, but when I want to use the filters in inventory menu in Components -> Virtuemart -> Products -> Inventory, I get 2 errors:

1- the filter product field does not work (see rectangle A in attached file): if I type a word and if I click on GO button, nothing happens

2- the drop down menu with these 3 options (Display stock level ; Product stock low ; Product not in stock) is also wrong (see rectangle B in attached file)

-> if I select Display stock level, normally the system should retreive all the products with green color = OK it works
-> if I select Product stock low, normally the system should retreive only orange color = KO the system retreive orange + red color
-> if I select Product not in stock, normally the system should retreive only red color = OK it work

Does anyone know why?

Thanks in advance
Laurent

[attachment cleanup by admin]
Title: Re: Inventory filter does not work
Post by: toonetcreation on August 09, 2012, 08:25:56 AM
Someone has an idea?
Bug or not?
Title: Re: Inventory filter does not work
Post by: Milbo on August 12, 2012, 02:23:44 AM
Looks like a bug yes.
Title: Re: Inventory filter does not work
Post by: toonetcreation on August 12, 2012, 08:24:00 AM
Ok thanks
So if you could include the correction on the next release...

Have a good day
Laurent
Title: Re: Inventory filter does not work
Post by: Milbo on August 12, 2012, 11:09:16 AM
Which correction? There is no correction, only a description of a bug. The inventory will be overhauled anyway.
Title: Re: Inventory filter does not work
Post by: toonetcreation on August 12, 2012, 13:35:23 PM
a correction to fix this bug of course.
but if inventory will be overhauled that's fine...
Title: Re: Inventory filter does not work
Post by: cellinu on September 21, 2012, 18:34:10 PM
Has anybody got a solution for this please ??
Title: Re: Inventory filter does not work
Post by: kurchania on August 17, 2013, 09:29:50 AM
still not fixed so i fix it by myself.hope virtuemart team include this code in next version
administrator/components/com_virtuemart/views/product/tmpl/default.php
<?php echo $this->displayDefaultViewSearch('filter_product') ?>
replace with
<input type="text" value="<?php echo JRequest::getVar('filter_product'); ?>" name="filter_product" size="25" />
Title: Re: Inventory filter does not work
Post by: Robert_ITMan on November 16, 2013, 13:40:22 PM
Thanks kurchania!

Your fix works for me too (v2.024a) - I just want to point out that you should not edit that file as it can be overwritten by an update, instead edit the view in your administrator template, for example:
Products:
copy the file administrator/components/com_virtuemart/views/product/tmpl/default.php
to administrator/templates/(your template - bluestork?)/html/com_virtuemart/product/default.php
<?php /* echo JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE') ?>&nbsp;
<input type="text" value="<?php echo JRequest::getVar('filter_product'); ?>" name="filter_product" size="25" /> // replace with below, see: https://forum.virtuemart.net/index.php?topic=106146.0 */ ?>
          <?php echo JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE'?>&nbsp;<input type="text" value="<?php echo JRequest::getVar('filter_product'); ?>" name="filter_product" size="25" /> <?php echo $this->lists['stockfilter'?>

Inventory:
copy the file administrator/components/com_virtuemart/views/inventory/tmpl/default.php
to administrator/templates/(your template - bluestork?)/html/com_virtuemart/inventory/default.php
<?php /* echo $this->displayDefaultViewSearch('filter_product') ?> // replace with below, see: https://forum.virtuemart.net/index.php?topic=106146.0 */ ?>
          <?php echo JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE'?>:&nbsp;<input type="text" value="<?php echo JRequest::getVar('filter_product'); ?>" name="filter_product" size="25" /> <?php echo $this->lists['stockfilter'?>