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
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
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!
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
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!
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?