Show Variant Image, depending on filter from Powersearch // Only works if their option codes and powersearch file code is the same.
<mvt:if expr="NOT ISNULL g.filter_ao2">
<mvt:assign name="g.vimage" value="''" />
<!-- Begin Variant Check -->
<mvt:item name="toolkit" param="variantarray|vcount|l.all_settings:product:code" />
<mvt:foreach iterator="variant" array="variants">
<mvt:foreach iterator="variant_option" array="variant:variant_options">
<mvt:if expr="l.settings:variant_option:opt_code EQ g.filter_ao2">
<!-- &mvt:variant_option:opt_code; / &mvt:variant_option:opt_prompt; -->
<mvt:item name="toolkit" param="customimagec|vimage|l.all_settings:variant:variant_code|image1|300|300|1" />
</mvt:if>
</mvt:foreach>
</mvt:foreach>
</mvt:if>