email enquiry

grecords

Avatar: grecords

2008-05-13 16:45

How can I set, when I put price 0.00 it will be show Email Enquiry on page?

» Quick.Cart v1.x

treewood (OpenSolution)

Avatar: treewood

2008-05-15 08:00

grecords - edit core/products.php and find functions throwProductsData() and throwProduct() ... add if( $aList['fPrice'] == '0.00' ){
$aList['fPrice'] = 'Email';
}

grecords

Avatar: grecords

2008-05-15 09:12

it doesn´t work. I have QC 1.4

and this is my core/products.php:

if( !function_exists( 'throwProduct' ) ){
/**
* Return product data
* @return array
* @param int $iProduct
*/
function throwProduct( $iProduct ){
global $oFF;
$iStatus = throwStatus( );
$aData = dbThrowProduct( $iProduct, $iStatus );
$aCategories = throwProductCategories( $iProduct );
if( isset( $aData ) && ( $iStatus === 0 || ( isset( $aCategories ) && is_array( $aCategories ) ) ) ){
$aList = dbThrowProductExt( $iProduct );

$aList['sDescriptionFull'] = $aList[1];
list( $aList['iProduct'], $aList['sName'], $aList['fPrice'], $aList['sDescriptionShort'], $aList['iStatus'], $aList['iPosition'] ) = $aData;

$aList['aCategories'] = $aCategories;

return $aList;
}
else
return null;
} // end function throwProduct
}

if( !function_exists( 'throwProducts' ) ){
/**
* Returns products in array
* index - iProduct
* value - sName
* @return array
*/
function throwProducts( ){
return dbThrowProducts( );
} // end function throwProducts
}

Back to top
about us | contact