View Single Post
  #2  
Old 02-26-2007, 06:35 PM
 
phpmattk phpmattk is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 44
 

Default Re: Order of items added to cart

Interesting idea... this should work. In /include/cart_process.php in the func_add_to_cart function, around line 248 you can see where it tacks the latest addition on the end of an array, it looks like this:

$cart["products"][] = array( ... etc etc

Change $cart['products'][] to $temp_arr[]
then after the array is defined do this

array_unshift($cart['products'],$temp_arr);

I don't know if thats all you'd need to do, but it'd be a quick fix and worth a shot.
__________________
-matt
version 4.1.5
Reply With Quote