I'm displaying related products in groups based on a custom product field. But having some trouble with the images.
(first group)
<mvt:foreach iterator="product" array="related_products:products">
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :ENGLISH">
<img id="main_image_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" />
<mvt:item name="related_products_imagemachine" param="body:product:id" />
</mvt:if>
</mvt:foreach>
(second group)
<mvt:foreach iterator="product" array="related_products:products">
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :GREEK">
<img id="main_image_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" />
<mvt:item name="related_products_imagemachine" param="body:product:id" />
</mvt:if>
A few related products fall into both groups so they are listed twice. The product image works the first time it's listed but doesn't show up the next time. I assume it's related to the image ID. Does anyone have a suggestion on how to work around this and get the image to display multiple times?
(first group)
<mvt:foreach iterator="product" array="related_products:products">
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :ENGLISH">
<img id="main_image_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" />
<mvt:item name="related_products_imagemachine" param="body:product:id" />
</mvt:if>
</mvt:foreach>
(second group)
<mvt:foreach iterator="product" array="related_products:products">
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :GREEK">
<img id="main_image_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" />
<mvt:item name="related_products_imagemachine" param="body:product:id" />
</mvt:if>
A few related products fall into both groups so they are listed twice. The product image works the first time it's listed but doesn't show up the next time. I assume it's related to the image ID. Does anyone have a suggestion on how to work around this and get the image to display multiple times?
Comment