Pages:

[en] numbers of entries

allberto

No avatar

2005-08-08 16:55

Is there a way to show numbers of entries next to the group's name?
e.g.
-> Computers (10)
-> Notebooks (20)

Thank you...

allberto

No avatar

2005-08-09 14:19

Yes. Thx for changing title... :)

allberto

No avatar

2005-08-14 19:13

KUKU

Anybody???

allberto

No avatar

2005-08-20 09:25

Anybody????
Plz, help me!!!

wewior (OpenSolution)

Avatar: wewior

2005-08-22 08:13

there is always the way, but it cost some time and work i think, but you may try to copy and change some functions
i think you need to count all products in all categories and put that numbers to array (iCategory -> key, iCount -> value), then when you list categories just select that one you need

allberto

No avatar

2005-08-22 15:11

could you explain more undesrtanding?

wewior (OpenSolution)

Avatar: wewior

2005-08-23 10:01

i try to do plugin works like you said, and post it here, but be patient :-)

allberto

No avatar

2005-08-23 22:49

OK :)
I'm waiting....
..... ..... ...
- is it ready???
- no!!!
..... ..... ...
- is it????
- no!!!
..... ..... ...

:D

allberto

No avatar

2005-08-29 21:02


I'm waiting....
..... ..... ...
- is it ready???
- no!!!
..... ..... ...
- is it????
- no!!!
..... ..... ...

:)

allberto

No avatar

2005-09-02 13:19

is it????

wewior (OpenSolution)

Avatar: wewior

2005-09-07 09:13

it is hard to do simple plugin, there is to many changes, a can post it here if you want

allberto

No avatar

2005-09-10 14:12

oah yes, I want!

julia

No avatar

2005-09-12 07:02

i want it too

wewior (OpenSolution)

Avatar: wewior

2005-09-14 11:46

try nrOfEntries plugin in download

Gizmo

No avatar

2005-09-14 14:30

Looks promesing wewior!..
Though I don't get it to work with QC 0.2.4.

In the howTo.txt file, there is mentioned:
step 2) copy files "nrOfEntries.php" and "actions_client.php" to "plugins/nrOfEntries/" directory

..but there is no actions_client.php file included in the plugin zip file?

wewior (OpenSolution)

Avatar: wewior

2005-09-14 21:35

ok, sorry there was actions_client.php file but i've change my mind :-)
fixed

Gizmo

No avatar

2005-09-14 21:41

wewior,

Do you have any idea where to put the code mentioned in step 5.
step 5) in core/categories.php to function throwListContent add below "$aList = $oCategory->aData[$iCategory];":

QC 0.2.4 doesn't have the function throwListContent in the file categories.php

Thank you!:)

wewior (OpenSolution)

Avatar: wewior

2005-09-15 08:22

first - Requirements: Quick.Cart v0.3.1 :-(
and second - you ca put that code anywere in that function but it must be below second line in that function:
$aList = $oCategory->aData[$iCategory];
i suggest to paste it before return, so:

function throwListContent( $iCategory, $sSub = null ){
global $tpl, $aList, $oCategory;

$aList = $oCategory->aData[$iCategory];

if( $oCategory->sOption == 'admin' ){
if( $aList['iCategory'] != $GLOBALS['config']['contact_page'] )
$aList['sDelLink'] = $tpl->tbHtml( $oCategory->sFile, 'DELETE_SITE' );
else
$aList['sDelLink'] = null;
}

if( isset( $oCategory->iSelected ) && $oCategory->iSelected == $aList['iCategory'] )
$aList['sSelected'] = $tpl->tbHtml( $oCategory->sFile, 'SELECTED' );
else
$aList['sSelected'] = null;

if( isset( $oCategory->aFirstFoto[$aList['iCategory']] ) && is_file( DIR_CATEGORIES_FILES.$oCategory->aFirstFoto[$aList['iCategory']]['fot o'] ) ){
global $oFoto;
$aName = $oFoto->throwNameExtOfFile( $oCategory->aFirstFoto[$aList['iCategory']]['foto'] );
$aList['file'] = $oCategory->aFirstFoto[$aList['iCategory']]['foto'];
$aList['fotoSmall'] = DIR_CATEGORIES_FILES.$aName[0].'_m.'.$aName[1];
$aList['fotoBig'] = DIR_CATEGORIES_FILES.$oCategory->aFirstFoto[$aList['iCategory']]['fot o'];
$aList['foto'] = $tpl->tbHtml( $oCategory->sFile, 'FOTO' );
}
else
$aList['foto'] = $tpl->tbHtml( $oCategory->sFile, 'NO_FOTO' );

if( empty( $aList['sShortDescription'] ) )
$aList['sShortDescription'] = ' ';

/* nrOfEntries */
$aList['iCatEntries'] = 0;
if( isset( $GLOBALS['aCatEntries'][$iCategory] ) )
$aList['iCatEntries'] = $GLOBALS['aCatEntries'][$iCategory];
/* nrOfEntries */

return $tpl->tbHtml( $oCategory->sFile, 'LIST_LIST'.$sSub );
} // end function throwListContent

allberto

No avatar

2005-10-07 19:02

THANK YOU VERY VERY VERY MUCH!!!
I'd kiss u if I were a girl ;) :D

mannekepis

No avatar

2006-09-21 15:11

that's gay... :S LoL

me

Pages:
Back to top
about us | contact