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}