So I've just implemented the image machine throughout a site (product and category display layouts, search results, product list, and basket) and have gotten stuck on how to pull the Image Type on my SFNT "Featured Items" category, which is pulled by the "subcat" function. This is what I currently have:
The image type is "main-product-image", however the above code returns an empty string. I'm not even sure if the Toolkit "customimage" function is what I should be using.
Any ideas?
thanks
Mike
Code:
<mvt:item name="toolkit" param="sassign|cat_code|Featured" />
<mvt:item name="toolkit" param="cxpc|pcount|g.cat_code" />
<mvt:if expr="pcount GT 0">
<mvt:foreach iterator="sub_product" array="sub_products">
<div class="prod-block">
<mvt:item name="toolkit" param="customimage|feature-thumb|l.all_settings:sub_product:ID|main-product-image" />
<mvt:if expr="g.feature-thumb">
<a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvta:global:Store_Code;&Product_Code=&mvta:sub_product:code;">
<img src="&mvte:global:feature-thumb;" />
</a><br />
</mvt:if>
&mvt:sub_product:name;<br />
Price: <mvt:item name="toolkit" param="currencyformat|formatted_price|l.all_settings:sub_product:price" />&mvt:global:formatted_price;
</div>
</mvt:foreach>
</mvt:if>
Any ideas?
thanks
Mike
Comment