Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sort Order in order_detail.php


scamp

Recommended Posts

hello all,

 

wondering if someone might have an easy fix for assigning a sort order to the shopping cart that is the sort order as call from order_details.php

 

I wish items to be sorted by item No (products_model) fairly simply to do this in the account history in both admin and catalog but need some advise assistance for the actually shopping basket.

 

And yes I looked through some 300+ posts on the forum for a past post or fix. :)

 

 

 

many thanks

 

Seb

Link to comment
Share on other sites

You could try adding

      ksort($this->contents);

before the reset($this->contents); around line 271 of includes/classes/shopping_cart.php (in function get_products).

 

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...