is it possible to view products by date?

No Rulez

No avatar

2005-12-22 05:14

i was wondering, is it possible to view products by date somehow?
maybe there is somekinda plugin for that?
if not, is it very hard or impossible to make one?
Thanks in advance.

No Rulez

No avatar

2005-12-22 16:23

Anyone please help me!!!

treewood (OpenSolution)

Avatar: treewood

2005-12-22 16:36

In qc v0.3.1 You should first save in db/products.php date to in first row before position or delete position and put there date

witaj.net

No Rulez

No avatar

2005-12-22 17:11

Thanks but Well I don't get it from product.php.It's show

-999<?php exit ('NO ENTRY '); ?>

Then what to do next?

Marik

No avatar

2006-09-29 19:12

is it already posible?

treewood (OpenSolution)

Avatar: treewood

2006-09-30 07:31

Marik - without not small modification it is possible

Marik

No avatar

2006-09-30 09:19

And what is that modification?

treewood (OpenSolution)

Avatar: treewood

2006-09-30 11:31

Marik - changing in core/products-ff.php function dbListProducts() and add sorting on that You want

Marik

No avatar

2006-09-30 19:27

I don't see a sorting methode

The source:
if( !function_exists( 'dbListProducts' ) ){
/**
* Return array of products list
* @return array
* @param int $iStatus
* @param int $iList
*/
function dbListProducts( $iStatus, $iList ){
global $oFF;
$aCategories = dbThrowProductsCategories( );
return $oFF->throwFileArrayFunctionPages( DB_PRODUCTS, null, $GLOBALS['iPage'], $iList, 'dbListProductsCheck', Array( $iStatus, $aCategories ) );
} // end function dbListProducts
}

treewood (OpenSolution)

Avatar: treewood

2006-09-30 19:39

Marik - i said add sorting. there is no sorting.

Marik

No avatar

2006-10-01 09:06

Sorry my php programming knowledge is nihil :$
Do you have a example?

Marik

No avatar

2006-10-02 13:10

I got an example
but what do i need to add?


example:

<?php

$fruits = array("lemon", "orange", "banana", "apple");
sort($fruits);
foreach ($fruits as $key => $val) {
echo "fruits[" . $key . "] = " . $val . "\n";
}

?>

treewood (OpenSolution)

Avatar: treewood

2006-10-02 15:40

Marik - maybe we can do it for You. contact us using contact form

Back to top
about us | contact