Adding Ordered Products to Admin overview

rttx

No avatar

2007-03-26 23:51

Hi

I got to this page:
http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=3762

here is show how to add a the product quantity to the admin overview,
i'd also like to see on this page the names of the products this client has orderd..

anyone who can fix this easily?

» Quick.Cart v1.x

RtTx

treewood (OpenSolution)

Avatar: treewood

2007-03-27 09:37

rttx - please ... this is not bug. It will be hard. I cant tell You complete tutorial.
In part below (read topic You gave link to first)

<?php 
$aFile 
fileDB_ORDERS_PRODUCTS );
$iCount2 count$aFile );
$aList['iCount'] = 0;
for( 
$i2 1$i2 $iCount2$i2++ ){
  
$aExp explode'$'$aFile[$i2] );
  if( 
$aList['iOrder'] == $aExp[1] ){
    
$aList['iCount'] += $aExp[3];
  }
}
?>

You should add after iCount, product names for example:
$aList['sProductNames'] .= $aExp[5].', '; and there where is iCount = 0 clear variable $aList['sProductNames'] = null;

This variable is ready to display in templates/admin/orders_list.tpl

Back to top
about us | contact