Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sorting Products With Split Between Different Manufacturers


Bilal81

Recommended Posts

I have seen a website with oscommerce that had implemented this in a very nice way. It should look like this:

 

http://www.digitique.nl/-c-158130_128_12814.html

 

I have looked at:

 

catalog/index.php

catalog/product_listing.php

 

But I have no clue what to do. I got it to work to show the products sorted out on manufacturer by changing the following code in index.php:

 

---

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {

if ($column_list[$i] == 'PRODUCT_LIST_NAME') {

$HTTP_GET_VARS['sort'] = $i+1 . 'a';

$listing_sql .= " order by pd.products_name";

break;

---

 

To:

 

---

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {

if ($column_list[$i] == 'PRODUCT_LIST_MANUFACTURER') {

$HTTP_GET_VARS['sort'] = $i+1 . 'a';

$listing_sql .= " order by m.manufacturers_name";

break;

---

 

But I don't know how to split the table, when it starts with a new manufacturer.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...