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.