Jump to content

Add sort to product tag search

Recommended Posts

I'd like to add sorting and pagination to the tag page (example.com/search?tag=blouse). The product-sort.tpl will not show unless the $orderby and $orderway are set.


On line 770 of classes/Search.php it states:

public static function searchTag
($id_lang, $tag, $count = false, $pageNumber = 0, $pageSize = 10, 
$orderBy = false, $orderWay = false, $useCookie = true, Context $context = null)

When I changed the $orderWay and $orderBy nothing happened.  Any suggestions?

Edited by nbarnum (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More