venturemedia Posted June 17, 2003 Posted June 17, 2003 Hi ! I use the Product-Feature and it works great. But i couldn't figure out, how to change the Sorting of the Dropdown Menu. For example i offer a PC System, and a Product Feature is "Communication" then i have the options : - ISDN Card - Analog 56k Modem - None and i want None to be preselected. (and showed at first) anyone knows how i can do that ? thanks in advance !! :)
Guest Posted June 17, 2003 Posted June 17, 2003 Is this a contribution?.... hard to show you how to do it without some code :shock:
venturemedia Posted June 17, 2003 Author Posted June 17, 2003 no, its not a contribution, i use the normal "product feature" feature :) for example look here : http://www.oscommerce.com/osCommerce22ms1/...4&products_id=1 i am talking about the dropdown boxes (e.g. Memory). if i wanted to add another option, it would appear at last in the dropdown box. and i know no way how to change the order of appereance of the options in the dropdown box.
Guest Posted June 17, 2003 Posted June 17, 2003 This should work ok for the preselection....in product info.php (around line 112 - MS1) change : $products_options_array = array(); to: $products_options_array = array('id' => '', 'text => 'None'); Please back up your file before making changes ... I have not tested this :shock: For the order you will have to introduce a sort order into the products_attributes query - this depends on *how* you wish to order them. . order by your_sort_order");
Recommended Posts
Archived
This topic is now archived and is closed to further replies.