Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Option values in attributes controller sort order

    I see ...

    If you look at that SELECT statement, you will see the table references:
    Code:
                          FROM " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . " povpo, " . TABLE_PRODUCTS_OPTIONS . " po, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov
    Each table is referenced with:
    povpo
    po
    pov

    which saves having to write out the whole name of the table ...

    On the ORDER BY:
    Code:
    ORDER BY po.products_options_id, po.products_options_name,  pov.products_options_values_sort_order,  pov.products_options_values_name
    It defines what the sort order for the records selected should be so this is sorted by the products_options table field products_options_id then it looks at the products_options table products_options_name it then sorts the products_options_values table products_options_values_sort_order and then the products_options_values table products_options_values_name ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Option values in attributes controller sort order

    ok thank you Ajeh

 

 

Similar Threads

  1. Option Value Sort Order - Attributes Controller Page Only
    By dranet in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 7 Mar 2017, 08:25 AM
  2. Sort order of option values
    By Nick1973 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Apr 2013, 02:06 PM
  3. v150 Option Values as Sort Order
    By coopco in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Jan 2013, 03:30 PM
  4. Alphabetical order of Option Values in Attribute Controller
    By D-man in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 20 Dec 2008, 05:56 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