PDA

View Full Version : 'New Products fro the Month' box disabled if no new products



hurst
09-14-2005, 05:39 PM
Can anyone tell me what to amend so that the 'New Products for the Month' box does NOT display if there are no new products?

Any help much appreciated.

Sander
09-15-2005, 12:11 AM
You could go through the code and look for the part where it start to display the box.

Then put in an statement with check if there are products, if 0, then don't create the box..

if ($productcount != 0) {
//display box
}

hurst
09-15-2005, 04:42 PM
It wasn't quite what I was looking for, but it put me on the right track.

Thanks for the assist.

:)

Sander
09-16-2005, 06:26 AM
any time :)


(yay 50 posts!)