Jump to content

[Solved] Problem with product views,thumbnails, on product page


Recommended Posts

Good morning all,

 

Using ps 1.5.1.4 default theme

 

I seem to have caused a problem with product image thumbnails on the product pages, they now do not show as a row of three with an arrow to the right but as a block

 

please see here to understand more

 

Below is part of the product .tpl file

 

 

<!-- thumbnails -->

<div id="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}">

{if isset($images) && count($images) > 3}<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) > 3}<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}

<!-- usefull links-->

<ul id="usefull_link_block">

{if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}

<li class="print"><a href="javascript:print();">{l s='Print'}</a></li>

{if $have_image && !$jqZoomEnabled}

{/if}

</ul>

</div>

 

The links on the thumbnails work but not correctly, the link on the larger image does not work at all

 

I am not sure what I have done as this was working perfectly before

 

Hope you can help

 

Paul

post-321361-0-05058900-1377327453_thumb.png

Edited by Paulito (see edit history)
Link to comment
Share on other sites

remove width: 67.8px;

from: (product.css)

 

#thumbs_list li {
float: left;
height: 82px;
width: 67.8px;
cursor: pointer;
}

 

and define: display: block; width: 100%!important; for:

 

#thumbs_list ul#thumbs_list_frame {
list-style-type: none;
padding-left: 0;
display: block;
width: 100%!important;
}

Link to comment
Share on other sites

Good morning,

 

Thank you vekia, uploading new product.js file solved the problem (see attached)

 

I am still not sure, how I managed to mess up the file

 

Paul

 

 

Dear Vekia,

 

What changes should be done to look like the Paulito query. Means his thumbnail type. Images with Left right arrow. in one line

Edited by Vilas (see edit history)
Link to comment
Share on other sites

Dear Vekia,

 

I am extremely sorry for it. Please find image for your reference. Wish to do like this. No matter size of images in thumnail list. Only thing is that if 3-4 images are there then customer will get option to scroll images.

 

Thanks

 

iwj6.jpg

Link to comment
Share on other sites

  • 2 years later...
  • 1 month later...

if your problem doesn't solve here is the tag

width: 70px !important;

 

it will solve ur problem. 

 

70px is the width of the thumbnail

u can adjust the width and mark it important.. vola done..  u can ask me questions too.. I had done a good research in Presta n OC. :)

Link to comment
Share on other sites

×
×
  • Create New...