steveosoule
12/16/2015 - 8:59 PM

Miva - Search Orders

Miva - Search Orders

<mvt:assign name="g.Offset" value="0" />
<mvt:assign name="g.Max" value="1" />
<mvt:assign name="g.Search" value="'johndoe@example.com'" />
<mvt:do file="g.Module_Library_DB" name="l.result" value="OrderList_Load_Offset(g.Offset, g.Search, 'bill_email,ship_email', g.Max, g.NextOffset, l.settings:orders)" />
<mvt:assign name="g.OrderCount" value="miva_array_elements(l.settings:orders)" />
<h2>Count: &mvt:global:OrderCount;</h2>
<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:orders), ',', '<br>'))" />