Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Plugin Contributions
    0

    Default How to Remove All Products Sort By?

    Does anyone know how to completly remove the All products sort by field at the top on the cart which has all the options. If it can't be removed can you remove some of the options

    Thnx

  2. #2
    Join Date
    Aug 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: How to Remove All Products Sort By:

    Quote Originally Posted by adrianF25 View Post
    Does anyone know how to completly remove the All products sort by field at the top on the cart which has all the options. If it can't be removed can you remove some of the options

    Thnx
    Locate in the following directory:
    includes/templates/template_default/templates

    Look for the following file:
    tpl_modules_listing_display_order.php

    Toward the bottom of that file, you'll find the following code:

    <option value="1" <?php echo ($disp_order == '1' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME; ?></option>

    <option value="2" <?php echo ($disp_order == '2' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME_DESC; ?></option>

    <option value="3" <?php echo ($disp_order == '3' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE; ?></option>

    <option value="4" <?php echo ($disp_order == '4' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE_DESC; ?></option>

    <option value="5" <?php echo ($disp_order == '5' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_MODEL; ?></option>

    <option value="6" <?php echo ($disp_order == '6' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_DATE_DESC; ?></option>

    <option value="7" <?php echo ($disp_order == '7' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_DATE; ?></option>

    Just comment out the options that you do not want. Remember to comment out the html and the php code.

    Hope that helps

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

    Default Re: How to Remove All Products Sort By:

    Be careful ... that is a shared module with other pages ...

    You can customize the template not to call that module as a better method ...
    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!

  4. #4
    Join Date
    Mar 2008
    Location
    The Free South
    Posts
    175
    Plugin Contributions
    0

    Default Re: How to Remove All Products Sort By:

    Quote Originally Posted by Ajeh View Post
    Be careful ... that is a shared module with other pages ...

    You can customize the template not to call that module as a better method ...
    Linda, I want the opposite. I want the "Sort by" drop down to show on all of my subcat and product pages. Currently it only show on the "All products" pages.

    www.thecablestation.com
    www.theCableStation.com
    "If we restrict liberty to attain security we will lose them both."

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

    Default Re: How to Remove All Products Sort By:

    The files are totally different ...

    I am thinking that someone went through and adapted a Product Listing so that it could use the dropdown, but I do not recall where that might be ...
    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!

  6. #6
    Join Date
    Mar 2008
    Location
    The Free South
    Posts
    175
    Plugin Contributions
    0

    Default Re: How to Remove All Products Sort By:

    Which files are different?

    Right now if you choose "Featured Products" or All Products" you will get the "Sort by" drop down at the top of the page. I just want that to show whenever you choose any other category.

    Is that possible?
    www.theCableStation.com
    "If we restrict liberty to attain security we will lose them both."

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

    Default Re: How to Remove All Products Sort By:

    The products listing is created in a different manner than the Featured Listing, New Products Listing and All Products Listing ...

    So these 3 use a different method to sort, via the dropdown ...

    The Product Listing is using the headings of the displayed fields ...

    You would need to do quite a bit of customization to be able to utilize the Dropdown for the Sort Order on the Product Listing ...
    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!

  8. #8
    Join Date
    Mar 2008
    Location
    The Free South
    Posts
    175
    Plugin Contributions
    0

    Default Re: How to Remove All Products Sort By:

    I found this partial solution from yellow1912:
    http://www.zen-cart.com/forum/showpo...8&postcount=25

    At least I have it on the products listing now.

    Thanks for your help.
    www.theCableStation.com
    "If we restrict liberty to attain security we will lose them both."

  9. #9
    Join Date
    Sep 2009
    Location
    Pasadena, MD
    Posts
    12
    Plugin Contributions
    0

    Default Re: How to Remove All Products Sort By?

    I have a similar question - how can I change the default sort order for "All Products" to "Model"?

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

    Default Re: How to Remove All Products Sort By?

    If you peek in the Configuration ... All Listing ... you will see a setting for the different default sort orders:
    Display Product Display - Default Sort Order
    What Sort Order Default should be used for All Products Display?
    Default= 1 for Product Name

    1= Products Name
    2= Products Name Desc
    3= Price low to high, Products Name
    4= Price high to low, Products Name
    5= Model
    6= Date Added desc
    7= Date Added
    8= Product Sort Order
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to remove New/all products from the category?
    By hayadude in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jun 2010, 03:23 PM
  2. Remove "Sort by" Drop Down on New Products/All Products
    By Picci in forum General Questions
    Replies: 3
    Last Post: 2 Feb 2009, 11:50 PM
  3. Replies: 1
    Last Post: 23 Sep 2008, 04:29 PM
  4. How to sort All Products Listings?
    By nrg77 in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 29 Feb 2008, 08:14 PM
  5. How to Remove Products Sort By dropdown
    By Wildthing in forum General Questions
    Replies: 0
    Last Post: 4 Nov 2007, 06:22 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