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
www.theCableStation.com
"If we restrict liberty to attain security we will lose them both."
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?
www.theCableStation.com
"If we restrict liberty to attain security we will lose them both."
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!
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."
I have a similar question - how can I change the default sort order for "All Products" to "Model"?
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!