Forums / General Questions / Remove "Sort by" Drop Down on New Products/All Products

Remove "Sort by" Drop Down on New Products/All Products

Locked

Views: 6,297

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Feb 2008, 5:26 AM
#1
picci avatar

picci

Zen Follower

Join Date:
Feb 2006
Posts:
125
Plugin Contributions:
0

Remove "Sort by" Drop Down on New Products/All Products

I want to remove the "Sort by" form that shows up at the top of the New Products and All Products Listing pages.

I have "Include Product Listing Alpha Sorter Dropdown" set to FALSE in Product Listing. However the "Sort by" form still displays on the pages.

I am running ZC 1.3.8a

Thanks

19 Feb 2008, 8:13 AM
#2
bgallagher avatar

bgallagher

New Zenner

Join Date:
Feb 2008
Posts:
41
Plugin Contributions:
0

Re: Remove "Sort by" Drop Down on New Products/All Products

If your good with coding you can try to remove the line of code in the tpl_products_all_defaul.php(or what ever the php file is that is requiring the listing order tpl_modules_listing_display_order.php)

be carefull when editing code to backup before you make any changes and good luck!

~B.

6 Jan 2009, 7:27 PM
#3
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Re: Remove "Sort by" Drop Down on New Products/All Products

BGallagher:

If your good with coding you can try to remove the line of code in the tpl_products_all_defaul.php(or what ever the php file is that is requiring the listing order tpl_modules_listing_display_order.php)
be carefull when editing code to backup before you make any changes and good luck!
~B.
tpl_modules_listing_display_order.php
Seems like the correct file - just commented out the div that starts like this:

<!-- <div id="sorter"> <label for="disp-order-sorter"><?php echo TEXT_INFO_SORT_BY; ?></label> <?php ## echo zen_draw_form('sorter_form', zen_href_link($_GET['main_page']), 'get'); ## echo zen_draw_hidden_field('main_page', $_GET['main_page']); // echo zen_draw_hidden_field('disp_order', $_GET['disp_order']); ## echo zen_hide_session_id();I commented out the whole div - sorter box now gone...

Be sure to make a copy of the file before you try this - it seems to work though - unless it has affected anything else I am unaware of (YET) - I may have to retrace my steps if it has undesirable effects elsewhere...

2 Feb 2009, 10:50 PM
#4
nicedreams avatar

nicedreams

New Zenner

Join Date:
Dec 2006
Location:
UK
Posts:
32
Plugin Contributions:
0

Re: Remove "Sort by" Drop Down on New Products/All Products

Worked for me too. Using the template overides system as ever adds peace of mind.

:bigups: