Jump to content

Category.tpl outputting buggy code


Recommended Posts

Hi there

I'm using firefox..

I am working on my first Prestashop install and am experiencing a strange bug when producing a grid of subcategories. At first I thought it was CSS related but after further inspection is seems that the outputted HTML is temporamental;

Usually by hard refreshing (ctrl+f5) will correct it. But if browsed to using the navigation, this is when it mucks up.

For example: http://ukcentral.com.au/category.php?id_category=30

My categories.tpl for producing the subcats:

    <!-- Subcategories -->

{l s='Subcategories'}

       {foreach from=$subcategories item=subcategory key=k}      

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">

                       {if $subcategory.id_image}
getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                       {else}

                       {/if}

{$subcategory.name|escape:'htmlall':'UTF-8'}


       {/foreach}





In the loop, the correctly outputted code for each

looks like this:

            





Leeds United





And when it mucks up it outputs:










Leeds United




So with that, does anybody know what's going on here? As it beats me!

Thanks!

Will

31944_TNiIls5ehUX3tihy2BXP_t

31945_EKUkq2wQPzy43ustPmDr_t

Link to comment
Share on other sites

×
×
  • Create New...