Saul Posted November 23, 2010 Share Posted November 23, 2010 I have a website here...http://www.highlandavewreaths.com I have combinations which change images and the price of items. When I have tried to hide, or disable the thumbnail images the attributes no longer change images, or prices. Anyone know how to turn off the thumb nails, see full image area and the print me area and move in the more info tab in the same spot while keeping the attribute image functionality?I have attached an image. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
rocky Posted November 26, 2010 Share Posted November 26, 2010 You should {* comment out *} lines 109-136 (in PrestaShop v1.3.2) of product.tpl in your theme's directory: > {if count($images) > 0} <!-- thumbnails --> {if count($images) > 3}<a id="view_scroll_left" class="hidden" title="{l s='Other views'}" href="[removed]{ldelim}{rdelim}">{l s='Previous'}{/if} {foreach from=$images item=image name=thumbnails} {assign var=imageIds value=`$product->id`-`$image.id_image`} <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" 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')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /> {/foreach} {if count($images) > 3}<a id="view_scroll_right" title="{l s='Other views'}" href="[removed]{ldelim}{rdelim}">{l s='Next'}{/if} {/if} {if count($images) > 1} <a id="resetImages" href="{$link->getProductLink($product)}" style="display:none;" onclick="$('a#resetImages').hide('slow');return (false);">{l s='Display all pictures'}{/if} <!-- usefull links--> </pre> <ul> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <a href="[removed]print();">{l s='Print'} {if $have_image && !$jqZoomEnabled} {l s='View full size'} {/if} </ul> Then copy the code on lines 329-388 after the code above: > {if count($images) > 0} <!-- thumbnails --> {if count($images) > 3}<a id="view_scroll_left" class="hidden" title="{l s='Other views'}" href="[removed]{ldelim}{rdelim}">{l s='Previous'}{/if} {foreach from=$images item=image name=thumbnails} {assign var=imageIds value=`$product->id`-`$image.id_image`} <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" 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')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /> {/foreach} {if count($images) > 3}<a id="view_scroll_right" title="{l s='Other views'}" href="[removed]{ldelim}{rdelim}">{l s='Next'}{/if} {/if} {if count($images) > 1} <a id="resetImages" href="{$link->getProductLink($product)}" style="display:none;" onclick="$('a#resetImages').hide('slow');return (false);">{l s='Display all pictures'}{/if} <!-- usefull links--> </pre> <ul> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <a href="[removed]print();">{l s='Print'} {if $have_image && !$jqZoomEnabled} {l s='View full size'} {/if} </ul> Link to comment Share on other sites More sharing options...
elegance Posted December 1, 2010 Share Posted December 1, 2010 Hi Rocky,I have a similar need to remove the thumbnails but retain the ability to click to zoom and well as switch the image based upon attribute combinations (using Attribute Wizard Pro). It makes sense to comment out the code you suggested but the lines you indicated to add don't seem to relate or work correctly. Are those line numbers correct? Could you paste in the actual code? I am using 1.2.5 but the code seems to be the same between the two versions. Thanks! 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