Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sorting products by brand then price


meep

Recommended Posts

Posted

Hi,

Ive been trying to search for this for the past few weeks, maybe im not putting in the right keywords.

 

Like said, I would like my products to be sorted first by Brand (manufactuer) and then by Price.

 

Currently Ive got my products to list by price here's the code if anyone wants to know.

 

On top of default.php

<?php

if ( !$HTTP_GET_VARS['sort'] ) { 

 $HTTP_GET_VARS['sort'] = '3a'; 

 $sort_order='a';

 

i dont know PHP so i dont know if its possible ?

Archived

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

×
×
  • Create New...