HI,
I need to move sold out items to the end of the category product listing page
HI,
I need to move sold out items to the end of the category product listing page
Give them all sort orders of 999
20 years a Zencart User
You could customize the SELECT statement to use the products_quantity as part of the WHERE statement ...
Peek in the:
/includes/index_filters/default_filter.php
and test this on the CASE statement for the Product Name:
When sorting by name, is this the affect that you are wanting?Code:case 'PRODUCT_LIST_NAME': $listing_sql .= " order by p.products_quantity DESC, pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break;
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: v1.5.5]
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!
Hi,
That didn't seem to work. I had something like that working before but it seems to have turned itself off.
Is there something in the admin panel that could be preventing it from working?
What is the default Sort Order for the listing when you select a category?
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: v1.5.5]
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!
Bookmarks