Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2006
    Posts
    17
    Plugin Contributions
    0

    Default Add Sort Drop Down to Product Listing?

    Hello all,

    I have been trying to do this for some time and haven't had much luck. I have noticed a few other people would also like this functionality so I thought I'd try to get a definitive answer if one exists.

    I would like to add a sort drop down box (like in the all products page) to the product listing page.

    Sort drop down:
    http://www.uniqueillumination.com/products_all.html

    Added to this product listing page:
    http://www.uniqueillumination.com/in...rs-c-1_16.html

    Due to the layout of the product listing page, I cannot use the column heading to sort the products by name, price, etc., so the drop down is my only option to sort these products.

    Any help would be greatly appreciated.

    Thanks,

    Hanz

  2. #2
    Join Date
    Jul 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    Nevermind...I got it.

    You just need to add this code:
    <?php
    require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php'); ?>
    <br />

    to the tpl_index_product_list.php file.

    Hope this help someone.

    Thanks,

    Hanz

  3. #3
    Join Date
    Jul 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    Nevermind my nevermind..

    All that does is add the sort box....it doesn't sort the products.

    -Hanz

  4. #4
    Join Date
    Jul 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    Looking at the source of each page, it appears that the page being loaded to do the sorting is incorrect on the product listing.

    I can't find how to set the proper page info.

    Source from products all:
    <div id="sorter">
    <label for="disp-order-sorter">Sort by: </label>
    <form name="sorter_form" action="http://www.uniqueillumination.com/products_all.html" method="get"><input type="hidden" name="main_page" value="products_all" /> <select name="disp_order" onchange="this.form.submit();" id="disp-order-sorter">

    Source from Product Listing(chandeliers page in this example):
    <div id="sorter">
    <label for="disp-order-sorter">Sort by: </label>
    <form name="sorter_form" action="http://www.uniqueillumination.com/" method="get"><input type="hidden" name="main_page" value="index" /> <select name="disp_order" onchange="this.form.submit();" id="disp-order-sorter">

    As you can see, the action and value in the chandeliers page point to the index page instead of the chandelier product page.

    -Hanz

  5. #5
    Join Date
    Feb 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    Hanz... I want to do the same thing... How did you make it work finaly?

  6. #6
    Join Date
    May 2007
    Location
    California
    Posts
    30
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    Yes... please do tell...

    I have the same exact issue...

    Sort option works great on All products, Special products, and New Products,

    ....BUT, I cannot for the life of me get it to work on product listing page :-(

    Can any of you super Zenners shed some light here?

    Regards!

  7. #7
    Join Date
    Jun 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    Adding my call for this change. I would like to add the "All Products" listing sort dropdown to my Product Listing. Does anybody know how to do this?
    Thanks,
    Bearaman

  8. #8
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    I will third that call... anyone that can help with this??

  9. #9
    Join Date
    Mar 2008
    Posts
    56
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    I'm trying to figure this out too...is this possible?

  10. #10
    Join Date
    Feb 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: Add Sort Drop Down to Product Listing?

    This post will get you halfway there:
    http://www.zen-cart.com/forum/showth...ht=sort&page=4

 

 

Similar Threads

  1. drop down attributes at product listing page near add to cart button.
    By Ethan Kolasinski in forum Setting Up Categories, Products, Attributes
    Replies: 95
    Last Post: 8 Mar 2019, 01:51 PM
  2. v151 Need to add sort drop down to sub category product listings....
    By tomlcuneo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Jul 2015, 07:54 PM
  3. Can I add new product type filter to New Products drop down sort?
    By rwoody in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Dec 2008, 08:42 PM
  4. Sort Drop Down in Product Listing?
    By Ryk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 May 2006, 07:03 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR