Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Help needed: Additional Alpha sorter based on quantity

    Hi,
    tpl_modules_listing_display_order.php:
    find
    Code:
    <option value="7" <?php echo ($disp_order == '7' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_DATE; ?></option>
    add after
    <?php // BOF disp_order by products_quantity ?>
    <option value="6" <?php echo ($disp_order == '8' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_QUANTITY; ?></option>
    <?php // EOF disp_order by products_quantity ?>

    listing_display_order.php
    find
    Code:
      case ($_GET['disp_order'] == 7):
      $order_by = " order by p.products_date_added, pd.products_name";
      break;
    add after
    Code:
    // BOF disp_order by products_quantity
      case ($_GET['disp_order'] == 8):
      $order_by = " order by p.products_quantity DESC, pd.products_name";
      break;
    // EOF disp_order by products_quantity
    Also you must define text language constant TEXT_INFO_SORT_BY_PRODUCTS_QUANTITY

  2. #2
    Join Date
    Jan 2009
    Posts
    69
    Plugin Contributions
    0

    Default Re: Help needed: Additional Alpha sorter based on quantity

    Dear Andrew!!!

    THANK YOU SO MUCH FOR UR HELP :)

    I REALLY REALLY REALLY APPRECIATE IT :)

    Take care!!!

  3. #3
    Join Date
    Jan 2009
    Posts
    69
    Plugin Contributions
    0

    Default Re: Help needed: Additional Alpha sorter based on quantity

    Hello Andrew,

    May i know how can i put the product filter (like in new products, featured products) into each category?

    Hope u can help too! Thank you!

 

 

Similar Threads

  1. Alpha Sorter Dropdown
    By lqqkey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2015, 11:22 PM
  2. v151 alpha sorter
    By noyloza in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Nov 2012, 03:03 PM
  3. How to create alpha sorter?
    By juneloweelyn in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2010, 02:57 PM
  4. Create an additional alpha sorter
    By juneloweelyn in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 31 Dec 2009, 10:25 AM
  5. Alpha Sorter
    By scottb in forum General Questions
    Replies: 3
    Last Post: 11 Jan 2007, 10:54 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