p0ldek Posted April 16, 2013 Share Posted April 16, 2013 (edited) Witam Kolejny problem jaki napotkałem jest taki: Gdy zmieniłem treść pliku product-list.tpl wszystko jest prawie dobrze z tym że nie wyświetlają mi się miniatury. Linki do miniatur prowadzą do pliku np. http://www.lightsource.pl/oferta/img/p/2/5/4/254-home.jpg Problem polega na tym iż nie ma tam takiego pliku jest trochę inny 254-home_default.jpg {if isset($products)} <!-- Products list --> <ul id="product_list" class="clear"> {foreach from=$products item=product name=products} <li class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix"> <div class="center_block"> <h3>{if $product.new == 1}<span class="new">{l s='new'}</span>{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'|truncate:100:'...'}</a></h3> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /></a> </div> <div class="right_block"> {if $product.on_sale} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} <span class="discount">{l s='Price lowered!'}</span> {/if} <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> </div> </li> {/foreach} </ul> <!-- /Products list --> {/if} Pytanie jest moje takie co zmienić żeby kierował link do dobrego pliku lub od drugiej strony może stworzyć taki plik? Za każdą wskazówkę będę wdzięczny. Edited April 16, 2013 by p0ldek (see edit history) Link to comment Share on other sites More sharing options...
mentalspot Posted April 16, 2013 Share Posted April 16, 2013 a generowałeś miniatury od nowa ? Link to comment Share on other sites More sharing options...
p0ldek Posted April 16, 2013 Author Share Posted April 16, 2013 (edited) A nie, spróbuje i dam znać. Nic to nie dało niestety. Czekam na dalsze pomysły. Edited April 16, 2013 by p0ldek (see edit history) Link to comment Share on other sites More sharing options...
p0ldek Posted April 16, 2013 Author Share Posted April 16, 2013 Dobra jak ktoś by chciał znalazłem rozwiązanie, fragment: <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> zamieniłem na : <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> i podziałało. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now