jen
6/10/2016 - 6:35 PM

Output Size Attribute As List

<mvt:comment>
| Get Attributes for Size
| Output pipe (|) seperated list
</mvt:comment>

<mvt:assign name="g.size_list" value="''" /> 

<mvt:foreach iterator="size" array="record:attributes:size">
  <mvt:assign name="g.size_list" value="g.size_list $ l.settings:size $ '|'" />
</mvt:foreach>

<mvt:assign name="g.size_list" value="substring( g.size_list, 1, len( g.size_list )-1 )" />
<mvt:assign name="g.size_list" value="miva_csv_encode( g.size_list, '|' )" />

Output: &mvt:global:size_list;