Miva - Recently Viewed Products (Footsteps)
<mvt:item name="customfields" param="Read_Basket('Footsteps', g.Footsteps)" />
<mvt:assign name="l.settings:footsteps" value="miva_array_deserialize( g.Footsteps )" />
<mvt:if expr="miva_array_find( l.settings:product:code, l.settings:footsteps, 1 ) EQ 0">
<mvt:if expr="miva_array_elements(l.settings:footsteps) EQ 5">
<mvt:assign name="l.index" value="miva_array_pop( l.settings:footsteps )" />
</mvt:if>
<mvt:assign name="l.index" value="miva_array_insert( l.settings:footsteps, l.settings:product:code, 1 )" />
<mvt:item name="customfields" param="Write_Basket('Footsteps', l.settings:footsteps)" />
</mvt:if>
<mvt:item name="toolkit" param="vquick|pcount|l.all_settings:footsteps" />
<mvt:if expr="g.pcount GT 0">
<mvt:foreach iterator="quicklist" array="quicklists">
&mvt:quicklist:name;<br>
</mvt:foreach>
</mvt:if>