This code works beautifully for displaying RANDOM products for a specific category -
but I need to display NEWEST products -
ANY help would be greatly appreciated :-)
<mvt:item name="toolkit" param="sassign|cat_code|EveningGownsSleeve" />
<a href="/CTGY/EveningConservativeCoverage.html"><h1>Evening Gowns with Sleeves</h1></a>
<mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|5" />
<mvt:if expr="pcount GT 0">
<table border="0" width="100%" cellpadding="35px" cellspacing="25px">
<tr valign="top" align="center">
<mvt:foreach iterator="sub_product" array="sub_products">
<td width="20%" padding="15px">
<mvt:if expr="NOT ISNULL l.settings:sub_product:thumbnail">
<a href="/PROD/&mvt:sub_product:code;.html"><img src="&mvt:sub_product:thumbnail;" height="150px" width="100x" border="0"></a>
</mvt:if>
<br />
<a href="/PROD/&mvt:sub_product:code;.html">&mvt:sub_product:name ;</a>
</td>
</mvt:foreach>
</tr>
</table>
</mvt:if>
but I need to display NEWEST products -
ANY help would be greatly appreciated :-)
<mvt:item name="toolkit" param="sassign|cat_code|EveningGownsSleeve" />
<a href="/CTGY/EveningConservativeCoverage.html"><h1>Evening Gowns with Sleeves</h1></a>
<mvt:item name="toolkit" param="randomcat|pcount|g.cat_code|5" />
<mvt:if expr="pcount GT 0">
<table border="0" width="100%" cellpadding="35px" cellspacing="25px">
<tr valign="top" align="center">
<mvt:foreach iterator="sub_product" array="sub_products">
<td width="20%" padding="15px">
<mvt:if expr="NOT ISNULL l.settings:sub_product:thumbnail">
<a href="/PROD/&mvt:sub_product:code;.html"><img src="&mvt:sub_product:thumbnail;" height="150px" width="100x" border="0"></a>
</mvt:if>
<br />
<a href="/PROD/&mvt:sub_product:code;.html">&mvt:sub_product:name ;</a>
</td>
</mvt:foreach>
</tr>
</table>
</mvt:if>
Comment