Hi,
I'm trying to display the sub category title image and a text link to the subcats on the parent category page.
Does someone have a 100% working version of this that they can share the code with me please?
*Someone posted this code to do that previously but it does not work at all when I try to use it -->
<div id="subcategory-listing">
<mvt:foreach iterator="sub_category" array="sub_categories">
<mvt:item name="toolkit" param="catimage|subcatImage|l.all_settings:sub_cat egory:code" />
<mvt:if expr="(pos1 MOD 4) EQ 1">
<div class="product-wrapper first">
<mvt:else>
<div class="product-wrapper">
</mvt:if>
<a href="/category/&mvta:sub_category:code;.html" title="&mvte:sub_category:name;">
<mvt:if expr="subcatImage">
<img src="&mvte:global:subcatImage;" alt="&mvte:sub_category:name;" title="&mvte:sub_category:name;" />
<mvt:else>
</mvt:if>
</a>
<span class="product-wrapper-name">&mvte:sub_category:name;</span>
<a href="/category/&mvta:sub_category:code;.html" title="Get Details" class="button">Get Details</a>
</div>
</mvt:foreach>
</div>
Any help would be greatly appreciated.
Thanks in advance.
I'm trying to display the sub category title image and a text link to the subcats on the parent category page.
Does someone have a 100% working version of this that they can share the code with me please?
*Someone posted this code to do that previously but it does not work at all when I try to use it -->
<div id="subcategory-listing">
<mvt:foreach iterator="sub_category" array="sub_categories">
<mvt:item name="toolkit" param="catimage|subcatImage|l.all_settings:sub_cat egory:code" />
<mvt:if expr="(pos1 MOD 4) EQ 1">
<div class="product-wrapper first">
<mvt:else>
<div class="product-wrapper">
</mvt:if>
<a href="/category/&mvta:sub_category:code;.html" title="&mvte:sub_category:name;">
<mvt:if expr="subcatImage">
<img src="&mvte:global:subcatImage;" alt="&mvte:sub_category:name;" title="&mvte:sub_category:name;" />
<mvt:else>
</mvt:if>
</a>
<span class="product-wrapper-name">&mvte:sub_category:name;</span>
<a href="/category/&mvta:sub_category:code;.html" title="Get Details" class="button">Get Details</a>
</div>
</mvt:foreach>
</div>
Any help would be greatly appreciated.
Thanks in advance.
Comment