News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to display specific div if there are only 2 products in a page ?

Started by wonderland, January 02, 2013, 23:04:03 PM

Previous topic - Next topic

wonderland

Hello!

For the past hour I've been trying to figure this out by looking at category layout code, but sadly I can't figure it out.

In each page I have 6 products, but if in last page there are 4 products or 2 products.

In case of 2 products or 4 products, I would like to display additional div's to fill up empty space.

I tried using many code variations

<?php 
  
if ($iBrowseCol == 1) {
    echo 
'<div id="mydiv></div>';
}
?>




<?php 
  
if ($iBrowseProduct == 2) {
    echo 
'<div id="mydiv></div>';
}
?>




<?php 
  
if ($BrowseTotalProducts == 2) {
    echo 
'<div id="mydiv></div>';
}
?>



and probably some others, but none of these worked.

I'm using Joomla 2.5.8 and VM 2.0.14