argoll 2007-09-08 22:04
I'm trying to add new field ( clothing size ) to admin page.In this area everyting is ok ( change/update new field works perfectly ) but suddenly it can't find any product in frontpage :) What i'm doing wrong?Am i missing something? Thanks in advance, Argo
» Quick.Cart v2.x argoll 2007-09-09 09:55
edited products_form.php, products-ff.php and products.php ( added fSuurus ) products.form <tr> <th> <strong>Suurus</strong> </th> <td> <input type="text" name="fSuurus" value="$aData[fSuurus]" size="40" maxlength="80"/> </td> </tr> products-ff.php function dbSaveProduct( $aForm, $bExist = null ){ global $oFF; extract( $aForm ); $oFF->setRow( Array( $iProduct, $sName, $fPrice, $fSuurus, $sDescriptionShort, $iStatus, $iPosition ) ); $oFF->setData( Array( 5, 1, 0, 2, 3, 4, 6 ) ); if( isset( $bExist ) ) $oFF->changeInFile( DB_PRODUCTS, $iProduct, 0, 'sort' ); else $oFF->addToFile( DB_PRODUCTS, 'sort' ); } // end function dbSaveProduct products.php for( $i = 0; $i < $iCount; $i++ ){ list( $aList['iProduct'], $aList['sName'], $aList['fPrice'], $aList['fSuurus'], $aList['sDescriptionShort'], $aList['iStatus'], $aList['iPosition'] ) = $aData[$i]; $aList['sDescriptionFull'] = $aList[1]; list( $aList['iProduct'], $aList['sName'], $aList['fPrice'], $aList['fSuurus'], $aList['sDescriptionShort'], $aList['iStatus'], $aList['iPosition'] ) = $aData; and thats all.well, i know i'm doing something wrong ...
argoll 2007-09-09 16:23
Finally i found answer! Topic closed.
paulus47 2007-09-10 19:22
well den place your answers here so that other people can learn how to fix this ;-)
paul ,Arnhem holland ledzep 2007-10-02 01:23
argoll, what was the answer, please?