View Single Post
  #1  
Old 06-05-2011, 04:30 PM
 
cmaddrix cmaddrix is offline
 

Newbie
  
Join Date: Sep 2010
Posts: 4
 

Default foreach loop product.tpl

I use custom product skins and I am trying to eliminate duplicate variant images from appearing on my custom product page

I need to change the following code so that var_image_exists =Y only when $v.image_url is unique. Any suggestions?

{assign var="var_img_exists" value=""}
{foreach from=$variants item=v key=vid}
{if $v.is_image ne ""}
{assign var="var_img_exists" value="Y"}
{/if}
{/foreach}
__________________
4.4
no add-on modules
Linux Server
Reply With Quote