Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Sort Bestsellers Alphabetically

    How do you sort the bestsellers alphabetically. Cant alter the query to 'order_by' as it is already doing that to get the top 10.

    Is there a way with the sort() function? or some other simple solution?

  2. #2
    Join Date
    Jul 2004
    Posts
    167
    Plugin Contributions
    0

    Default Re: Sort Bestsellers Alphabetically

    Change:
    $bestsellers_list[$rows]['name'] = $best_sellers->fields['products_id'];
    $bestsellers_list[$rows]['id'] = $best_sellers->fields['products_description'];
    $best_sellers->MoveNext();
    }

    $title_link = false;

    to:
    $bestsellers_list[$rows]['name'] = $best_sellers->fields['products_description'];
    $bestsellers_list[$rows]['id'] = $best_sellers->fields['products_id'];
    $best_sellers->MoveNext();
    }

    $title_link = false;
    sort($bestsellers_list);

 

 

Similar Threads

  1. v139h How to sort products alphabetically?
    By DocRocks in forum General Questions
    Replies: 6
    Last Post: 15 Feb 2012, 08:05 PM
  2. v139h Sort customer list Alphabetically
    By I wish I could in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Jan 2012, 01:32 AM
  3. Product Sort Order only sorts Alphabetically, not by the order assigned.
    By webooks in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Nov 2009, 05:19 PM
  4. Bestsellers sidebox not showing all bestsellers all the time
    By Heather88 in forum Basic Configuration
    Replies: 4
    Last Post: 7 Jul 2008, 12:50 AM

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