Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

List products by price as default


phantompressents

Recommended Posts

Posted

Im sure this must be a very simple operation and im trying to do it the hard way.

any way i cant get the products to be listed by price highest first.

 

can any of you clever programmers let me know how :-"

Posted
Im sure this must be a very simple operation and im trying to do it the hard way.

any way i cant get the products to be listed by price highest first.

 

can any of you clever programmers let me know how :-"

 

 

Try this as it is by replacing the code in index.php file from line no 129 to 138

 

$define_list = array('PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,

'PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

 

//asort($define_list);

Hard Work Is The Simplest Way Of Success

Archived

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

×
×
  • Create New...