Forums / General Questions / Modify Product Alpha Listing Sorter dropdown menu

Modify Product Alpha Listing Sorter dropdown menu

Started by johnboycr on 2 May 2009, 10:29 PM · Views: 3,005

Results 1 to 6 of 6
2 May 2009, 10:29 PM
#1
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

Modify Product Alpha Listing Sorter dropdown menu

This is an 'offshoot' from my other question, as I think the other question about Sort By was misleading.

What I really want to do is change the Product Alpha Listing Sorted Dropdown so that the selections are not Alphanumeric but are instead the same options as offered when viewing All Products, those being Product Name, Product Name - desc, Price- low to high,
etc.

How do I do that?

3 May 2009, 12:23 AM
#2
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

Re: Modify Product Alpha Listing Sorter dropdown menu

I have been looking at the following two PHP files;
product_listing_alpha_sorter.php and
tpl_modules_listing_display_order.php

The first (alpha sorter) generates the default alpha list for the
Sort By drop down menu, and the second generates the
drop down menu for All Products. The second is the menu that I
want to use in place of the alpha sorter.

Here is my question: If I replace the code in
product_listing_alpha_sorter.php with the code from
tpl_modules_listing_display_order.php am I likely to cause
problems with the rest of the program?

Of course I will first make a backup of the alpha_sorter code.

Any help out there?

3 May 2009, 1:07 AM
#3
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

Re: Modify Product Alpha Listing Sorter dropdown menu

By changing the code, I got the drop down menu to display the
selections I want, but it doesn't do anything.

Obviously quite a bit more to it than what I last proposed, since that
change by itself did not work. I think I have to figure out how to get
the selected item (eg Price low to high) to be executed by the
listing_display_order.php code. HMMM!

Would appreciate some help from a guru!

Thanks.

22 May 2010, 11:27 AM
#5
snagroot avatar

snagroot

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: Modify Product Alpha Listing Sorter dropdown menu

Thanks for this! Was looking everywhere ;)