was able to hide not wanted attributes from showing up in dropdowns :)
also changed the sort order of items in dropdowns to match ranges set by product options value
still need to find a way to hide the catagories box without setting to false !!
to hide attributes from showing on form
1) set attributes to sort order of 500 or some other high # you will never plan to use.
2)in file tpl_product_filter.php
find:
Code:
$option_names = $db->Execute("SELECT products_options_id,products_options_name FROM ". TABLE_PRODUCTS_OPTIONS);
replace with:
Code:
$option_names = $db->Execute("SELECT products_options_id,products_options_name FROM " . TABLE_PRODUCTS_OPTIONS . " WHERE products_options_sort_order = 500");
to change sort order make sure you add your option values in the order you want them to show (this works by options id #)
after:
$options_array = array_pad($options_array,sizeof($options_array )+1,array("id"=>$option_names_values->fields['products_options_values_id'],"text"=>$option_names_values->fields['products_options_values_name']));
add:
any help with hiding the catagories box would deffinatly be appreciated and is the last thing needed to make this work 100%
thanx
Mike
Bookmarks