From fda39bb2373ff335a72540ed166ea34353dda9e5 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 5 Sep 2012 08:29:34 +0000 Subject: [PATCH] [-] MO : fixed bug #PSCFV-3871 --- modules/productscategory/productscategory.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/productscategory/productscategory.tpl b/modules/productscategory/productscategory.tpl index d8e3fb70a..f36be9bdd 100644 --- a/modules/productscategory/productscategory.tpl +++ b/modules/productscategory/productscategory.tpl @@ -28,10 +28,11 @@

{$categoryProducts|@count} {l s='other products in the same category:' mod='productscategory'}

- + {if count($categoryProducts) > 5}{l s='Previous' mod='productscategory'}{/if}
    5}style="width: {math equation="width * nbImages" width=107 nbImages=$categoryProducts|@count}px"{/if}> - {foreach from=$categoryProducts item='categoryProduct' name=categoryProduct} + {foreach from=$categoryProducts item='categoryProduct' name=categoryProduct} + {if count($categoryProducts) < 6}style="width: {math equation="width / nbImages" width=94 nbImages=$categoryProducts|@count}%"{/if}
  • {$categoryProduct.name|htmlspecialchars}

    @@ -48,7 +49,7 @@ {/foreach}

- + {if count($categoryProducts) > 5}{l s='Next' mod='productscategory'}{/if}