Browse All Fiddles


Basket #84932

Created: 1516129566
View "Basket #84932"
<!-- Self closing Item with no parameter --> <mvt:item name="html_profile" /> <!-- Self closing Item with parameter --> <mvt:item name="head" param="css_list" /> <!-- Item with opening and closing tags --> <mvt:item name="body"></mvt:item> this is a test of coolness
 

Basket #83635

Created: 1515789927
View "Basket #83635"
<!-- Self closing Item with no parameter --> <mvt:item name="html_profile" /> <!-- Self closing Item with parameter --> <mvt:item name="head" param="css_list" /> <!-- Item with opening and closing tags --> <mvt:item name="body"></mvt:item>
 
View "Snippet: 1515789887 - v1"
<!-- Self closing Item with no parameter --> <mvt:item name="html_profile" /> <!-- Self closing Item with parameter --> <mvt:item name="head" param="css_list" /> <!-- Item with opening and closing tags --> <mvt:item name="body"></mvt:item>
 

Basket #83610

Created: 1515789515
View "Basket #83610"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 
View "Snippet: 1515789240 - v1"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83561

Created: 1515788865
View "Basket #83561"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvta:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83559

Created: 1515788858
View "Basket #83559"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvt:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83557

Created: 1515788853
View "Basket #83557"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83478

Created: 1515765916
View "Basket #83478"
<mvt:comment> Logic to determine Next 'Tuesday' Tuesday is "3"" If bought Friday, Saturday Or Sunday - Calculate date of next Monday, If bought Monday or Tuesday, calculate next wednesdays date, if bought wednesday thursday, calculate upcoming fridays date. </mvt:comment> <mvt:assign name="l.sunday" value="1" /> <mvt:assign name="l.monday" value="2" /> <mvt:assign name="l.tuesday" value="3" /> <mvt:assign name="l.wednesday" value="4" /> <mvt:assign name="l.thursday" value="5" /> <mvt:assign name="l.friday" value="6" /> <mvt:assign name="l.saturday" value="7" /> <mvt:comment>Determine what day of week we are calculating the future date for based on current day</mvt:comment> <mvt:if expr="s.tm_wday EQ l.friday OR s.tm_wday EQ l.saturday OR s.tm_wday EQ l.sunday"> <mvt:assign name="l.dayofweek" value="l.monday" /> <mvt:elseif expr="s.tm_wday EQ l.monday OR s.tm_wday EQ l.tuesday"> <mvt:assign name="l.dayofweek" value="l.wednesday" /> <mvt:else> <mvt:assign name="l.dayofweek" value="l.friday" /> </mvt:if> <mvt:assign name="l.dayofweek" value="7" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /> <mvt:assign name="l.next_tuesday" value="mktime_t( s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, g.Merchant_Local_Timezone ) + ( 60 * 60 * 24 * l.math )" /> <mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:assign name="l.month" value="l.months[ time_t_month( l.next_tuesday, g.Merchant_Local_Timezone ) ]" /> <mvt:assign name="l.day" value="time_t_dayofmonth( l.next_tuesday, g.Merchant_Local_Timezone )" /> <mvt:assign name="g.ships_on_date" value="'Tuesday, ' $ l.month $ ' ' $ l.day" /> Ships by: &mvt:global:ships_on_date; <br> Current day: <mvt:eval expr="l.dayofweek" /> today_dow: <mvt:eval expr="l.today_dow" />
 

Basket #83396

Created: 1515712521
View "Basket #83396"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvt:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83394

Created: 1515712501
View "Basket #83394"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83392

Created: 1515712489
View "Basket #83392"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvt:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83390

Created: 1515712482
View "Basket #83390"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 
View "Snippet: 1515712360 - v1"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83378

Created: 1515712350
View "Basket #83378"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; </br> </br> <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83376

Created: 1515712336
View "Basket #83376"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable; <mvt:assign name="g.attribute_encocded" value="'This is attribute, encoded'" /> Output: &mvte:global:attribute_encocded;
 

Basket #83374

Created: 1515712241
View "Basket #83374"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvte:global:myvariable;
 

Basket #83372

Created: 1515712224
View "Basket #83372"
<mvt:assign name="g.myvariable" value="'<script> alert(\"oh no \")</script>'" /> Output: &mvt:global:myvariable;
 

Basket #83370

Created: 1515711058
View "Basket #83370"
<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;
 

Basket #83367

generate a google maps link
Created: 1515710851
View "Basket #83367"
<mvt:assign name="g.mapsLink" value="'https://www.google.com/maps/place/' $ glosub(glosub(g.store:address $ ' ' $ g.store:city $ ' ' $ g.store:state $ ' ' $ g.store:zip $ ' ' $ g.store:country, ' ', '+'), '.', '')" /> &mvt:global:mapsLink;
 
View "Snippet: 1515698203 - v1"
&mvt:product:code; - Entity l.settings:product:code - Variable //No <mvt:if expr="&mvt:product:code; EQ 'test'"> //Does not work. Compile Error </mvt:if> //Yes <mvt:if expr="l.settings:product:code EQ 'test'"> //This does work! </mvt:if>
 

Basket #83291

Created: 1515698196
View "Basket #83291"
&mvt:product:code; - Entity l.settings:product:code - Variable No <mvt:if expr="&mvt:product:code; EQ 'test'"> //Does not work. Compile Error </mvt:if> Yes <mvt:if expr="l.settings:product:code EQ 'test'"> //This does work! </mvt:if>
 

Basket #83289

Created: 1515698185
View "Basket #83289"
&mvt:product:code; - Entity l.settings:product:code - Variable //No <mvt:if expr="&mvt:product:code; EQ 'test'"> Does not work. Compile Error </mvt:if> //Yes <mvt:if expr="l.settings:product:code EQ 'test'"> This does work! </mvt:if>
 

Basket #83287

Created: 1515698174
View "Basket #83287"
&mvt:product:code; - Entity l.settings:product:code - Variable //No <mvt:if expr="&mvt:product:code; EQ 'test'"> //Does not work. Compile Error </mvt:if> //Yes <mvt:if expr="l.settings:product:code EQ 'test'"> //This does work! </mvt:if>
 
View "Snippet: 1514560391 - v1"
<mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:eval expr="l.months" />
 

Basket #82149

Created: 1514504078
View "Basket #82149"
<mvt:comment> Logic to determine Next 'Tuesday' Tuesday is "3"" If bought Friday, Saturday Or Sunday - Calculate date of next Monday, If bought Monday or Tuesday, calculate next wednesdays date, if bought wednesday thursday, calculate upcoming fridays date. </mvt:comment> <mvt:assign name="l.sunday" value="1" /> <mvt:assign name="l.monday" value="2" /> <mvt:assign name="l.tuesday" value="3" /> <mvt:assign name="l.wednesday" value="4" /> <mvt:assign name="l.thursday" value="5" /> <mvt:assign name="l.friday" value="6" /> <mvt:assign name="l.saturday" value="7" /> <mvt:comment>Determine what day of week we are calculating the future date for based on current day</mvt:comment> <mvt:if expr="s.tm_wday EQ l.friday OR s.tm_wday EQ l.saturday OR s.tm_wday EQ l.sunday"> <mvt:assign name="l.dayofweek" value="l.monday" /> <mvt:elseif expr="s.tm_wday EQ l.monday OR s.tm_wday EQ l.tuesday"> <mvt:assign name="l.dayofweek" value="l.wednesday" /> <mvt:else> <mvt:assign name="l.dayofweek" value="l.friday" /> </mvt:if> <mvt:assign name="l.dayofweek" value="6" /> <mvt:assign name="l.decrement" value="3"/> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - l.decrement ) * -1" /> <mvt:comment><mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if></mvt:comment> <mvt:assign name="l.next_tuesday" value="mktime_t( s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, g.Merchant_Local_Timezone ) + ( 60 * 60 * 24 * l.math )" /> <mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:assign name="l.month" value="l.months[ time_t_month( l.next_tuesday, g.Merchant_Local_Timezone ) ]" /> <mvt:assign name="l.day" value="time_t_dayofmonth( l.next_tuesday, g.Merchant_Local_Timezone )" /> <mvt:assign name="g.ships_on_date" value="'Tuesday, ' $ l.month $ ' ' $ l.day" /> Ships by: &mvt:global:ships_on_date; <br> Current day: <mvt:eval expr="l.dayofweek" /> today_dow: <mvt:eval expr="l.today_dow" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82147

Created: 1514504048
View "Basket #82147"
<mvt:comment> Logic to determine Next 'Tuesday' Tuesday is "3"" If bought Friday, Saturday Or Sunday - Calculate date of next Monday, If bought Monday or Tuesday, calculate next wednesdays date, if bought wednesday thursday, calculate upcoming fridays date. </mvt:comment> <mvt:assign name="l.sunday" value="1" /> <mvt:assign name="l.monday" value="2" /> <mvt:assign name="l.tuesday" value="3" /> <mvt:assign name="l.wednesday" value="4" /> <mvt:assign name="l.thursday" value="5" /> <mvt:assign name="l.friday" value="6" /> <mvt:assign name="l.saturday" value="7" /> <mvt:comment>Determine what day of week we are calculating the future date for based on current day</mvt:comment> <mvt:if expr="s.tm_wday EQ l.friday OR s.tm_wday EQ l.saturday OR s.tm_wday EQ l.sunday"> <mvt:assign name="l.dayofweek" value="l.monday" /> <mvt:elseif expr="s.tm_wday EQ l.monday OR s.tm_wday EQ l.tuesday"> <mvt:assign name="l.dayofweek" value="l.wednesday" /> <mvt:else> <mvt:assign name="l.dayofweek" value="l.friday" /> </mvt:if> <mvt:assign name="l.dayofweek" value="6" /> <mvt:assign name="l.decrement" value="4"/> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - l.decrement ) * -1" /> <mvt:comment><mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if></mvt:comment> <mvt:assign name="l.next_tuesday" value="mktime_t( s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, g.Merchant_Local_Timezone ) + ( 60 * 60 * 24 * l.math )" /> <mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:assign name="l.month" value="l.months[ time_t_month( l.next_tuesday, g.Merchant_Local_Timezone ) ]" /> <mvt:assign name="l.day" value="time_t_dayofmonth( l.next_tuesday, g.Merchant_Local_Timezone )" /> <mvt:assign name="g.ships_on_date" value="'Tuesday, ' $ l.month $ ' ' $ l.day" /> Ships by: &mvt:global:ships_on_date; <br> Current day: <mvt:eval expr="l.dayofweek" /> today_dow: <mvt:eval expr="l.today_dow" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82145

Created: 1514503992
View "Basket #82145"
<mvt:comment> Logic to determine Next 'Tuesday' Tuesday is "3"" If bought Friday, Saturday Or Sunday - Calculate date of next Monday, If bought Monday or Tuesday, calculate next wednesdays date, if bought wednesday thursday, calculate upcoming fridays date. </mvt:comment> <mvt:assign name="l.sunday" value="1" /> <mvt:assign name="l.monday" value="2" /> <mvt:assign name="l.tuesday" value="3" /> <mvt:assign name="l.wednesday" value="4" /> <mvt:assign name="l.thursday" value="5" /> <mvt:assign name="l.friday" value="6" /> <mvt:assign name="l.saturday" value="7" /> <mvt:comment>Determine what day of week we are calculating the future date for based on current day</mvt:comment> <mvt:if expr="s.tm_wday EQ l.friday OR s.tm_wday EQ l.saturday OR s.tm_wday EQ l.sunday"> <mvt:assign name="l.decrement" value="4"/> <mvt:assign name="l.dayofweek" value="l.monday" /> <mvt:elseif expr="s.tm_wday EQ l.monday OR s.tm_wday EQ l.tuesday"> <mvt:assign name="l.dayofweek" value="l.wednesday" /> <mvt:else> <mvt:assign name="l.dayofweek" value="l.friday" /> </mvt:if> <mvt:assign name="l.dayofweek" value="6" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - l.decrement ) * -1" /> <mvt:comment><mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if></mvt:comment> <mvt:assign name="l.next_tuesday" value="mktime_t( s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, g.Merchant_Local_Timezone ) + ( 60 * 60 * 24 * l.math )" /> <mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:assign name="l.month" value="l.months[ time_t_month( l.next_tuesday, g.Merchant_Local_Timezone ) ]" /> <mvt:assign name="l.day" value="time_t_dayofmonth( l.next_tuesday, g.Merchant_Local_Timezone )" /> <mvt:assign name="g.ships_on_date" value="'Tuesday, ' $ l.month $ ' ' $ l.day" /> Ships by: &mvt:global:ships_on_date; <br> Current day: <mvt:eval expr="l.dayofweek" /> today_dow: <mvt:eval expr="l.today_dow" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82143

Created: 1514503929
View "Basket #82143"
<mvt:comment> Logic to determine Next 'Tuesday' Tuesday is "3"" If bought Friday, Saturday Or Sunday - Calculate date of next Monday, If bought Monday or Tuesday, calculate next wednesdays date, if bought wednesday thursday, calculate upcoming fridays date. </mvt:comment> <mvt:assign name="l.sunday" value="1" /> <mvt:assign name="l.monday" value="2" /> <mvt:assign name="l.tuesday" value="3" /> <mvt:assign name="l.wednesday" value="4" /> <mvt:assign name="l.thursday" value="5" /> <mvt:assign name="l.friday" value="6" /> <mvt:assign name="l.saturday" value="7" /> <mvt:comment>Determine what day of week we are calculating the future date for based on current day</mvt:comment> <mvt:if expr="s.tm_wday EQ l.friday OR s.tm_wday EQ l.saturday OR s.tm_wday EQ l.sunday"> <mvt:assign name="l.decrement" value="-4"/> <mvt:assign name="l.dayofweek" value="l.monday" /> <mvt:elseif expr="s.tm_wday EQ l.monday OR s.tm_wday EQ l.tuesday"> <mvt:assign name="l.dayofweek" value="l.wednesday" /> <mvt:else> <mvt:assign name="l.dayofweek" value="l.friday" /> </mvt:if> <mvt:assign name="l.dayofweek" value="6" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - l.decrement ) * -1" /> <mvt:comment><mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if></mvt:comment> <mvt:assign name="l.next_tuesday" value="mktime_t( s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, g.Merchant_Local_Timezone ) + ( 60 * 60 * 24 * l.math )" /> <mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:assign name="l.month" value="l.months[ time_t_month( l.next_tuesday, g.Merchant_Local_Timezone ) ]" /> <mvt:assign name="l.day" value="time_t_dayofmonth( l.next_tuesday, g.Merchant_Local_Timezone )" /> <mvt:assign name="g.ships_on_date" value="'Tuesday, ' $ l.month $ ' ' $ l.day" /> Ships by: &mvt:global:ships_on_date; <br> Current day: <mvt:eval expr="l.dayofweek" /> today_dow: <mvt:eval expr="l.today_dow" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82141

Created: 1514503863
View "Basket #82141"
<mvt:comment> Logic to determine Next 'Tuesday' Tuesday is "3"" If bought Friday, Saturday Or Sunday - Calculate date of next Monday, If bought Monday or Tuesday, calculate next wednesdays date, if bought wednesday thursday, calculate upcoming fridays date. </mvt:comment> <mvt:assign name="l.sunday" value="1" /> <mvt:assign name="l.monday" value="2" /> <mvt:assign name="l.tuesday" value="3" /> <mvt:assign name="l.wednesday" value="4" /> <mvt:assign name="l.thursday" value="5" /> <mvt:assign name="l.friday" value="6" /> <mvt:assign name="l.saturday" value="7" /> <mvt:comment>Determine what day of week we are calculating the future date for based on current day</mvt:comment> <mvt:if expr="s.tm_wday EQ l.friday OR s.tm_wday EQ l.saturday OR s.tm_wday EQ l.sunday"> <mvt:assign name="l.decrement" value="0"/> <mvt:assign name="l.dayofweek" value="l.monday" /> <mvt:elseif expr="s.tm_wday EQ l.monday OR s.tm_wday EQ l.tuesday"> <mvt:assign name="l.dayofweek" value="l.wednesday" /> <mvt:else> <mvt:assign name="l.dayofweek" value="l.friday" /> </mvt:if> <mvt:assign name="l.dayofweek" value="6" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 4 ) * -1" /> <mvt:comment><mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if></mvt:comment> <mvt:assign name="l.next_tuesday" value="mktime_t( s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, g.Merchant_Local_Timezone ) + ( 60 * 60 * 24 * l.math )" /> <mvt:assign name="l.months" value="miva_array_deserialize( 'January,February,March,April,May,June,July,August,September,October,November,December' )" /> <mvt:assign name="l.month" value="l.months[ time_t_month( l.next_tuesday, g.Merchant_Local_Timezone ) ]" /> <mvt:assign name="l.day" value="time_t_dayofmonth( l.next_tuesday, g.Merchant_Local_Timezone )" /> <mvt:assign name="g.ships_on_date" value="'Tuesday, ' $ l.month $ ' ' $ l.day" /> Ships by: &mvt:global:ships_on_date; <br> Current day: <mvt:eval expr="l.dayofweek" /> today_dow: <mvt:eval expr="l.today_dow" /> mat: <mvt:Eval expr="l.math"/>