"miva_array_search" Snippets


View "Basket #56916"
<mvt:assign name="g.saProdCategories[1]" value="'Gear Set'" /> <mvt:assign name="g.saProdCategories[2]" value="'Jerseys'" /> <mvt:assign name="g.saProdCategories[3]" value="'Pants'" /> <mvt:assign name="g.saProdCategories[4]" value="'Gloves'" /> <mvt:assign name="g.saProdCategories[5]" value="'Guards & Braces'" /> <mvt:assign name="g.saProdCategories[6]" value="'Chest Protectors'" /> <mvt:assign name="g.saProdCategories[7]" value="'Base Layers'" /> <mvt:assign name="g.saProdCategories[8]" value="'Casual Shirts'" /> <mvt:assign name="g.saProdCategories[9]" value="'Casual Pants'" /> <mvt:assign name="g.saProdCategories[10]" value="'Hats'" /> <mvt:assign name="g.saProdCategories[11]" value="'Socks'" /> <mvt:assign name="g.saProdCategories[12]" value="'Shoes'" /> <mvt:assign name="g.saProdCategories[13]" value="'Boots'" /> <mvt:assign name="g.saProdCategories[14]" value="'Goggles'" /> <mvt:assign name="g.pCat" value="'Boots'" /> Category : &mvt:global:pCat;<br/> POS: <mvt:eval expr="miva_array_search( g.saProdCategories, 1, l.saCategory, 'l.saCategory EQ \'' $ g.pCat $ '\'' )" /> <mvt:eval expr="l.attribute"/>
 
View "Basket #56616"
<mvt:assign name="l.settings:attributes[1]:siteId" value="''" /> <mvt:assign name="siteId" value="'123'" /> <mvt:assign name="l.settings:attributes[2]:templateId" value="'12333'" /> <mvt:assign name="l.settings:attributes[3]:currentPageUrl" value="'0'" /> <mvt:assign name="l.settings:saParameter" value="l.settings:attributes" /> <mvt:assign name="g.var" value="'foo'" /> <mvt:do file="g.Module_JSON" name="l.success" value="JSON_Encode(l.settings:saParameter)" /> <mvt:eval expr="success"/>
 
View "Basket #56548"
<mvt:assign name="l.parameter[1]" value="'{\"config\":{\"siteId\": \"7850070\",\"templateId\": \"221\",\"currentPageUrl\": \"0\"},\"productId\":\"\'&mvt:product:Code\'\"}'" /> <mvt:eval expr="l.parameter"/>
 
View "Basket #55998"
<mvt:call action="'//s28.socialannex.com/v2.0/review/getReviews'" method="'POST'" fields="'parameter={\"config\":{\"siteId\": \"7850070\",\"templateId\": \"221\",\"currentPageUrl\": \"0\"},\"productId\":\"122\"}'"> <mvt:eval expr="s.callvalue" /> </mvt:call>
 
View "Basket #47284"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[3]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[3]:prompt" value="'Foo Bar:'" /> <mvt:assign name="l.settings:attributes[4]:template_code" value="'baz'" /> <mvt:assign name="l.settings:attributes[4]:prompt" value="'Baz!:'" /> <mvt:assign name="g.var" value="'color'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> <mvt:eval expr="l.attribute"/>
 
View "Basket #40303"
<mvt:assign name="g.array[1]" value=" 'apple' "/> <mvt:assign name="g.array[2]" value=" 'orange' "/> <mvt:assign name="g.array[3]" value=" 'banana' "/> &mvt:global:array; <mvt:assign name="g.randomFruit" value="g.array[ random( miva_array_max(g.array) ) ]" /> &mvte:global:randomFruit; <mvt:assign name="l.settings:number" value="random(3)" /> &mvt:number;
 
View "Basket #40204"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[3]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[3]:prompt" value="'Foo Bar:'" /> <mvt:assign name="l.settings:attributes[4]:template_code" value="'baz'" /> <mvt:assign name="l.settings:attributes[4]:prompt" value="'Baz!:'" /> <mvt:assign name="g.var" value="'foo'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> <mvt:eval expr="l.attribute"/>
 
View "Basket #26152"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[3]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[3]:prompt" value="'Foo Bar:'" /> <mvt:assign name="l.settings:attributes[4]:template_code" value="'baz'" /> <mvt:assign name="l.settings:attributes[4]:prompt" value="'Baz!:'" /> <mvt:foreach iterator="attribute" array="attributes"> &mvt:attribute:prompt; &amp; &mvt:attribute:template_code;<br /> </mvt:foreach> <mvt:assign name="g.var" value="'foo'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> <br /> <mvt:eval expr="l.attribute"/> <br /> No escape: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, l.attribute:template_code EQ g.var)" /> <br /> Quotes: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, l.attribute:template_code EQ 'g.var')" /> <br /> POS: <mvt:assign name="g.newvar" value="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> &mvt:global:newvar; <br /> <mvt:eval expr="l.attribute"/> <br /> No escape: <mvt:assign name="g.newvar2" value="miva_array_search( l.settings:attributes, 1, l.attribute, l.attribute:template_code EQ g.var)" /> &mvt:global:newvar2; <br /> Quotes: <mvt:assign name="g.newvar3" value="miva_array_search( l.settings:attributes, 1, l.attribute, l.attribute:template_code EQ 'g.var')" /> &mvt:global:newvar3;
 
View "Basket #19987"
<mvt:foreach iterator="data" array="imagedata"> Image Data:<br> &mvt:data:image:id;<br> &mvt:data:image:height;<br> &mvt:data:image:width;<br> &mvt:data:image:image;<br> &mvt:data:image:refcount;<br> ImageType Data:<br> &mvt:data:imagetype:code;<br> &mvt:data:imagetype:descrip;<br> </mvt:foreach>
 
View "miva_array_search()"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[3]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[3]:prompt" value="'Foo Bar:'" /> <mvt:assign name="l.settings:attributes[4]:template_code" value="'baz'" /> <mvt:assign name="l.settings:attributes[4]:prompt" value="'Baz!:'" /> <mvt:assign name="g.var" value="'foo'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> <mvt:eval expr="l.attribute"/>
 
View "miva_array_search()"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[3]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[3]:prompt" value="'Foo Bar:'" /> <mvt:assign name="g.var" value="'foo'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> <mvt:eval expr="l.attribute"/>
 
View "miva_array_search()"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[3]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[3]:prompt" value="'Foo Bar:'" /> <mvt:assign name="g.var" value="'foo'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'' $ g.var $ '\'' )" /> <mvt:eval expr="l.attribute"/>
 
View "miva_array_search()"
<mvt:assign name="l.settings:attributes[1]:template_code" value="'size'" /> <mvt:assign name="l.settings:attributes[1]:prompt" value="'Select a Size:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'color'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Select a Color:'" /> <mvt:assign name="l.settings:attributes[2]:template_code" value="'foo'" /> <mvt:assign name="l.settings:attributes[2]:prompt" value="'Foo Bar:'" /> POS: <mvt:eval expr="miva_array_search( l.settings:attributes, 1, l.attribute, 'l.attribute:template_code EQ \'foo\'' )" /> <mvt:eval expr="l.attribute"/>