Jump to content

[SOLVED] hide cover images in product page


Recommended Posts

hi, is there any way that we can hide the cover images in product page to prevent it from showing?

here is my code that generate the list of thumbnail, if possible i will like to hide the cover images from appearing

{if isset($images)}
               {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="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">
getImageLink($product->link_rewrite, $imageIds, 'productPicTn')}" alt="{$image.legend|htmlspecialchars}" height="{$productPicTnSize.height}" width="{$productPicTnSize.width}" />




               {/foreach}
           {/if}



any input? :)

Link to comment
Share on other sites

problem solve, this is the code to check for cover image

{if $image.id_image != $cover.id_image_only}{/if}



and in my case, it will be

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

                   {if $image.id_image != $cover.id_image_only}


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



                   {/if}
               {/foreach}

Link to comment
Share on other sites

  • 2 months later...
  • 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...