Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change sort order for shopping cart box


Guest

Recommended Posts

Hi there,

 

I am looking for a way to change the sort order of the shopping cart box in the column_right area. I would like to display last product added on top of this list.

 

We sell a lot of different low price items, in which clients sometimes end up with a very big shopping cart. Therefore I wrote a function that only displays five items in the shopping cart box. Since we do not send the client to the main shopping cart everytime it would be useful that the newest item always stays at top of that list.

 

Can somebody help?

 

Thanks Matt

Link to comment
Share on other sites

Well, I solved it myself... ;-)

 

I just used the sizeof() function and started with the last item using a for statement. If somebody wants to do the same, send me a PM.

 

Regards Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...