Jump to content

[SOLVED]in thumbnails, if I want to increase the item to be shown from 3 to 10?


seldon.paul2

Recommended Posts

  • 2 months later...

change the value of nbimagesdisplayed should work in the js file => product.js

serialScrollNbImagesDisplayed = 10;

// Serialscroll exclude option bug ?
function serialScrollFixLock(event, targeted, scrolled, items, position)
{
   serialScrollNbImages = $('#thumbs_list li:visible').length;
   serialScrollNbImagesDisplayed = 3;

   var leftArrow = position == 0 ? true : false;
   var rightArrow = position + serialScrollNbImagesDisplayed >= serialScrollNbImages ? true : false;

   $('a#view_scroll_left').css('cursor', leftArrow ? 'default' : 'pointer').css('display', leftArrow ? 'none' : 'block').fadeTo(0, leftArrow ? 0 : 1);        
   $('a#view_scroll_right').css('cursor', rightArrow ? 'default' : 'pointer').fadeTo(0, rightArrow ? 0 : 1).css('display', rightArrow ? 'none' : 'block');
   return true;
}



and you should move also the product.tpl {if count($images) > 3} for {if count($images) > 10} :


       {if count($images) > 3}{l s='Previous'}{/if}


               {foreach from=$images item=image name=thumbnails}
               {assign var=imageIds value=`$product->id`-`$image.id_image`}

getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="{if !$jqZoomEnabled}thickbox{/if} {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">
getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" />


               {/foreach}


       {if count($images) > 3}{l s='Next'}{/if}

Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...