sadaf Posted July 13, 2013 Share Posted July 13, 2013 I have attached the image with my problem please need a help.. there is no thumbnail image in some products... Link to comment Share on other sites More sharing options...
PSfever.com Posted July 13, 2013 Share Posted July 13, 2013 Can you give me the URL of your website? Link to comment Share on other sites More sharing options...
sadaf Posted July 13, 2013 Author Share Posted July 13, 2013 (edited) . Edited July 13, 2013 by sadaf (see edit history) Link to comment Share on other sites More sharing options...
sadaf Posted July 13, 2013 Author Share Posted July 13, 2013 did you see the problem??? Link to comment Share on other sites More sharing options...
PSfever.com Posted July 13, 2013 Share Posted July 13, 2013 So on most of products thumbnail work but on some they don't ? What is the name of the product? Link to comment Share on other sites More sharing options...
PSfever.com Posted July 13, 2013 Share Posted July 13, 2013 I found the problem, the div with id views_block is hidden. This is caused by either javascript of .tpl files, so check both. I bet there should be something in terms of counting the number of LIs in the UL. Once this number is <4 or <3 it gives to this div class of hidden. Link to comment Share on other sites More sharing options...
sadaf Posted July 13, 2013 Author Share Posted July 13, 2013 (edited) i will give you my tpl file just check out what wrong with it... {if isset($images) && count($images) > 0} <!-- thumbnails --> <div id="views_block" class="clearfix {if isset($images) && count($images) < 4}hidden{/if}"> {if isset($images) && count($images) > 5}<span class="view_scroll_spacer"><a id="view_scroll_left" class="hidden" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Previous'}</a></span>{/if} <div id="thumbs_list"> <ul id="thumbs_list_frame"> {if isset($images)} {foreach from=$images item=image name=thumbnails} {assign var=imageIds value="`$product->id`-`$image.id_image`"} <li id="thumbnail_{$image.id_image}"> <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')}" rel="other-views" class="thickbox{if $smarty.foreach.thumbnails.first} shown{/if}" title="{$image.legend|htmlspecialchars}"> <img id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium_default')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /> </a> </li> {/foreach} {/if} </ul> </div> {if isset($images) && count($images) > 5}<a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Next'}</a>{/if} </div> {/if} {if isset($images) && count($images) > 1}<p class="resetimg clear"><span id="wrapResetImages" style="display: none;"><img src="{$img_dir}icon/cancel_11x13.gif" alt="{l s='Cancel'}" width="11" height="13"/> <a id="resetImages" href="{$link->getProductLink($product)}" onclick="$('span#wrapResetImages').hide('slow');return (false);">{l s='Display all pictures'}</a></span></p>{/if} Edited July 13, 2013 by sadaf (see edit history) Link to comment Share on other sites More sharing options...
sadaf Posted July 13, 2013 Author Share Posted July 13, 2013 so what makes the div get hidden>? where should i make the changes>? Link to comment Share on other sites More sharing options...
PSfever.com Posted July 13, 2013 Share Posted July 13, 2013 Dude... it's written in the code, you didn't have to PM me about it. Delete this and it should be working. {if isset($images) && count($images) < 4}hidden{/if} Link to comment Share on other sites More sharing options...
sadaf Posted July 13, 2013 Author Share Posted July 13, 2013 Thanks a lott broda you saved me from silly mistake Link to comment Share on other sites More sharing options...
vekia Posted July 13, 2013 Share Posted July 13, 2013 thanks, nice and quick solution marked as [solved] regards Link to comment Share on other sites More sharing options...
Recommended Posts