If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Options and Option Values Sorting - In Admin Only

Options and Option Values Sorting - In Admin Only

Locked

Started by passingtime on 10 Oct 2006, 9:47 PM · Views: 1,819

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
10 Oct 2006, 9:47 PM
#1
passingtime avatar

passingtime

New Zenner

Join Date:
Jan 2006
Posts:
9
Plugin Contributions:
0

Options and Option Values Sorting - In Admin Only

In /admin Catalog | Option Name Manager: Is it possible to add the ability to sort the Product Options, in addition to Option ID and Option Name, to include sorting by "Sort Order"?

And also possibly making that an option in /admin Catalog | Option Value Manager to include sorting by "Default Order"?

Thanks.

10 Oct 2006, 11:24 PM
#2
passingtime avatar

passingtime

New Zenner

Join Date:
Jan 2006
Posts:
9
Plugin Contributions:
0

Re: Options and Option Values Sorting - In Admin Only

Zen Cart Version 1.3.5
original files with no modifications

In admin Catalog | Option Name Manager to add "Sort Order" to list of sort options in addition to Option ID and Option Name.

catalog/admin/options_name_manager.php

around line 521
find:

<td valign="top" align="left"><form name="option_order_by" action="<?php echo zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'option_order_by=' . $option_order_by, 'NONSSL'); ?>"><select name="selected" onChange="go_option()"><option value="products_options_id"<?php if ($option_order_by == 'products_options_id') { echo ' SELECTED'; } ?>><?php echo TEXT_OPTION_ID; ?></option><option value="products_options_name"<?php if ($option_order_by == 'products_options_name') { echo ' SELECTED'; } ?>><?php echo TEXT_OPTION_NAME; ?></option></select></form></td>

modify or change to:

<td valign="top" align="left"><form name="option_order_by" action="<?php echo zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'option_order_by=' . $option_order_by, 'NONSSL'); ?>"><select name="selected" onChange="go_option()"><option value="products_options_id"<?php if ($option_order_by == 'products_options_id') { echo ' SELECTED'; } ?>><?php echo TEXT_OPTION_ID; ?></option><option value="products_options_name"<?php if ($option_order_by == 'products_options_name') { echo ' SELECTED'; } ?>><?php echo TEXT_OPTION_NAME; ?></option><option value="products_options_sort_order"<?php if ($option_order_by == 'products_options_sort_order') { echo ' SELECTED'; } ?>><?php echo TEXT_OPTIONS_SORT_ORDER; ?></option></select></form></td>

catalog/admin/includes/languages/english/options_name_manager.php

around line 42
find:
define('TEXT_OPTION_NAME', 'Option Name');

just below add:
define('TEXT_OPTIONS_SORT_ORDER', 'Sort Order');

=== next

In admin Catalog | Option Value Manager to add "Default Order" to list of sort options.

My mistake, no option to sort by here.

Thanks. Sorry for the post, but hope this helps anyone wanting it.