Location: PHPKode > projects > Quick.Cart - free and simple to use shopping cart script > db/_products.def.php
<?php
$aFieldsNames   = Array( 'iProduct' => 0, 'sName' => 1, 'sNameUrl' => 2, 'mPrice' => 3, 'iStatus' => 4, 'iPosition' => 5,  'sAvailable' => 6, 'sDescriptionShort' => 7 );
$aFieldsSort    = Array( 'iPosition', 'sName', 'sNameUrl', 'iProduct', 'sAvailable', 'mPrice', 'sDescriptionShort', 'iStatus' );

function products( $aExp ){
  return Array( 'iProduct' => $aExp[0], 'sName' => $aExp[1], 'sNameUrl' => $aExp[2], 'mPrice' => $aExp[3], 'iStatus' => $aExp[4], 'iPosition' => $aExp[5], 'sAvailable' => $aExp[6], 'sDescriptionShort' => $aExp[7] );
}
?>
Return current item: Quick.Cart - free and simple to use shopping cart script