Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 4 of 4

Thread: Sort products by price

  1. #1
    Anonymous
    Guest


    Default Sort products by price

    Hi! I want to order my products by price when browsing the categories and manufacturer instead of model number, how can I do this? Thank you for your help.

  2. #2
    lbs
    Guest


    Default RE: Sort products by price

    Quote Originally Posted by juanmanuel
    Hi! I want to order my products by price when browsing the categories and manufacturer instead of model number, how can I do this? Thank you for your help.
    I to are looking for a way to sort products by price.
    So when customers open a category they see the cheapest products first
    PLEASE CAN ANY ONE HELP

  3. #3
    nemail
    Guest


    Default RE: Sort products by price

    Hi. Not tried this myself, but it might be worth having a look here in the replies to this previous post:
    http://oscdox.com/PNphpBB2-viewtopic...ight-sort.html
    It may be dealt with elsewhere on the forum also.

    Good luck.

  4. #4
    Jonnyboy
    Guest


    Default RE: Sort products by price

    Hi

    You need to change the index.php file on around line 110.
    You need to edit the end section of the sql query

    $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "' order by p.products_price ASC";

    Hope this helps
    John

Similar Threads

  1. Sort by price?
    By kenlyle in forum osCmax v2 Customization/Mods
    Replies: 9
    Last Post: 09-14-2010, 01:40 AM
  2. Sort by price question
    By moreduff in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-02-2005, 07:32 AM
  3. Change sort order on new products
    By Lord in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 03-23-2005, 03:05 AM
  4. Setting Sort Order for Products?
    By sheikyerbouti in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 11-12-2003, 11:25 PM
  5. Upcoming Products reverse date sort
    By mdanby in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-30-2003, 09:05 AM

Bookmarks

Bookmarks

Posting Permissions

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