News:

Looking for documentation? Take a look on our wiki

Main Menu

Reorder/Change search_type options in Product List View

Started by brentonking, December 12, 2012, 15:01:14 PM

Previous topic - Next topic

brentonking

In the backend product list view I need to make the default "search_type" option = only parent
The reason is obviously I want to show the parent products only on default. Client has multiple children products for each item and the list gets too stretched out.

I figured I can just remove the Please Select option and make only parent the default ... or will it need to be done another way?

I can change the "Reset" button to display only parent by changing
  • to [1] in the line below (/administrator/components/com_virtuemart/views/product/tmpl/default.php):
    <button onclick="document.adminForm.filter_product.value=''; document.adminForm.search_type.options[0].selected = true;"><?php echo JText::_('COM_VIRTUEMART_RESET'); ?></button>

    But I need to have this "only parent" function appear on standard page load. Hopefully some others will find an answer helpful too.