Remove sorting

ArchangelX

Avatar: ArchangelX

2007-11-09 12:19

Is it possible to completely remove sorting in qc 1.4 so that the the last product added will be on the top of the list? Kinda like sorting products by date.

» Quick.Cart v1.x

merci

No avatar

2007-11-12 10:01

ArchangelX - if you change sorting by position to sorting by products id, it should works as you need. Open file: core/products-ff.php and in function dbSaveProduct() find code:

 
$oFF
->setRow( Array( $iProduct$sName$fPrice$sDescriptionShort$iStatus$iPosition ) );
   
$oFF->setData( Array( 51023) );

and change it to:

$oFF->setRow( Array( $iProduct$sName$fPrice$sDescriptionShort$iStatus$iPosition ) );
   
$oFF->setData( Array( 05123) );

then in the same file find code:

if( isset( $bExist ) )
     
$oFF->changeInFileDB_PRODUCTS$iProduct0'sort' );
   else
     
$oFF->addToFileDB_PRODUCTS'sort' );

and replace there word 'sort' to 'rsort'

Back to top
about us | contact