Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Forcing a sort option to next/previous


Adyx

Recommended Posts

Hi, in modules/product_listing.php

The part that creates the Next and Previous links, and the page numbers, appears to allways tag the sort value as 2a.

I.E Alphabetical

 

I need this to default to 3a -- i.e By Ascending price

 

Any ideas what i need to edit in :

<?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?>

 

to get the 3a sort order value to be the default ?

 

I have edited the index.php page to :

$listing_sql .= " order by final_price";

which works fine when you first go into the category / product listing..

but as soon as you click on next / previous / or a page number it reverts back

to the default.

 

Thank you in advance for any help ;)

Link to comment
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...