Witam
Zmodyfikowałem i przeniosłem blok nowe produkty z boxa (lewa/prawa) do home i niestety mam pewien problem. Raz pokazuje nowe produkty a raz nie
Kod blocknewproducts.tpl
<!-- MODULE Block new products -->
<div id="new-products_block" class="block products_block">
<h4>{l s='New products' mod='blocknewproducts'}</h4>
{if isset($products) AND $products}
<div class="block_content">
{assign var='zr_liHeight' value=100}
{assign var='zr_nbItemsPerLine' value=5}
{assign var='zr_nbLi' value=$products|@count}
{assign var='zr_nbLines' value=$zr_nbLi/$zr_nbItemsPerLine|ceil}
{assign var='zr_ulHeight' value=$zr_nbLines*$zr_liHeight}
<ul style="height:{$zr_ulHeight}px;">
{foreach from=$new_products item=product name=myLoop}
{assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite)}
<li class="ajax_block_product {if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.iteration%$zr_nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.myLoop.iteration%$zr_nbItemsPerLine == 1}first_item_of_line{/if} {if $smarty.foreach.myLoop.iteration > ($smarty.foreach.myLoop.total - ($smarty.foreach.myLoop.total % $zr_nbItemsPerLine))}last_line{/if}">
<h5><a href="{$productLink}" title="{$product.name}">{$product.name|escape:htmlall:'UTF-8'|truncate:30}</a></h5>
<p class="product_desc"><a href="{$productLink}" title="More">{$product.description_short|strip_tags:'UTF-8'|truncate:60}</a></p>
<center> <a href="{$productLink}" title="{$product.legend}" class="product_image"><img src="{$img_prod_dir}{$product.id_image}-home.jpg" alt="{$product.legend}" height="119" width="119"></a>
<p><span class="price">{displayWtPrice p=$product.price}</span>
<a class="button" href="{$productLink}" title="{l s='View' mod='blocknewproducts'}">{l s='View' mod='blocknewproducts'}</a>
{if $allow_buy_when_out_of_stock OR ($product.quantity AND $product.quantity > 0) OR $product.allow_oosp}
<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$base_dir}cart.php?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Dodaj do koszyka' mod='blocknewproducts'}">{l s='Dodaj do koszyka' mod='blocknewproducts'}</a>
{else}
<span class="exclusive">{l s='Dodaj dokoszyka' mod='blocknewproducts'}</span>
{/if}
<center>
</li>
{/foreach}
</ul>
</div>
{else}
<p>{l s='No new product at this time' mod='blocknewproducts'}</p>
{/if}
</div>
<!-- /MODULE Block new products -->
Może ktoś z was ma pomysł jak rozwiązać problem wyświetlania nowych produktów na home