Results 1 to 2 of 2
  1. #1
    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.

  2. #2
    Join Date
    Jan 2006
    Posts
    9
    Plugin Contributions
    0

    Idea or Suggestion Found where and got it to sort by "Sort Order"

    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.

 

 

Similar Threads

  1. Sorting Option Values
    By Mudster in forum Basic Configuration
    Replies: 6
    Last Post: 19 Oct 2009, 07:58 PM
  2. Sorting Option Values
    By Mudster in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Sep 2009, 10:31 PM
  3. Whatīs that option? Option Names and Values Glo....
    By ryska in forum General Questions
    Replies: 0
    Last Post: 3 Dec 2007, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg