FYI...all of the db changes made in zen_configuration have been applied to each of the listings (new, featured, and all).
FYI...all of the db changes made in zen_configuration have been applied to each of the listings (new, featured, and all).
I have not tried this, but I believe you will want to change listing_display_order.php
from 9 to 8 ...Code:<option value="9" <?php echo ($disp_order == '9' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_WEIGHT; ?></option>
Then, look at the file:
/includes/modules/listing_display_order.php
and add the case for 8:
NOTE: I added the products_name in there so there was some order when sorted by weight and there are a dozen products with weight of 1 and something to sort all of those to a logical order ...Code:case ($_GET['disp_order'] == 8): $order_by = " order by p.products_weight, pd.products_name"; break;
The reason to use 8 vs 9 is that the default on the case was intended to work on the sort_order which was what to do when there was no match ... and while the admin settings show 1-8 you will see there is no 8 in the case statements in the original code ...
On your changes for the database settings, change those so that they display with 8 for the weight rather than 9 ...
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!
That did the trick! I left everything labeled as 9 (since the admin area has an 8 for product sort order for new, featured, and all products...).
Thanks for your help.
Is it possible to list products in admin by manufacturer name as search result, sort order or manufacturer page?
The perfect answer! But I had exactly the same question as morechai 11 years later and the instructions are exactly the same--just as opaque--as they were then. In most of the other configuration boxes the options are described. In the Zen Wiki, this particular setting isn't even addressed--it's link redirects to configuring Gift Certificates!
I searched for this answer for an hour. Thanks again for providing it!
This thread still pops up first for sort order queries.
In this mod
https://www.zen-cart.com/showthread....rter-Drop-Down
there is a detailed description of how the sorting works.
Steve
github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...
Bookmarks