Browse All Fiddles


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"/>
 

Basket #82139

Created: 1514503827
View "Basket #82139"
<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 ) - 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 #82137

Created: 1514503785
View "Basket #82137"
<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 ) - 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 #82134

Created: 1514503682
View "Basket #82134"
<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.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 ) - 1 ) * -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 #82132

Created: 1514503668
View "Basket #82132"
<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.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 ) - 0 ) * -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 #82130

Created: 1514503656
View "Basket #82130"
<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.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 ) - 1 ) * -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 #82128

Created: 1514503427
View "Basket #82128"
<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="5" /> <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: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 #82126

Created: 1514503413
View "Basket #82126"
<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.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: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 #82124

Created: 1514503339
View "Basket #82124"
<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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -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 #82122

Created: 1514503218
View "Basket #82122"
<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="5" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -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" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82120

Created: 1514503199
View "Basket #82120"
<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="5" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if> <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 #82118

Created: 1514503156
View "Basket #82118"
<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="2" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if> <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 #82116

Created: 1514503134
View "Basket #82116"
<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="1" /> <mvt:assign name="l.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if> <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 #82114

Created: 1514503119
View "Basket #82114"
<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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if> <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 #82112

Created: 1514503086
View "Basket #82112"
<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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <mvt:if expr="l.math LT 1"> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if> <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"/> <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 #82110

Created: 1514503055
View "Basket #82110"
<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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -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" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82108

Created: 1514503049
View "Basket #82108"
<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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -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" /> mat: <mvt:Eval expr="l.math"/>
 

Basket #82106

Created: 1514503033
View "Basket #82106"
<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.today_dow" value="time_t_dayofweek( s.dyn_time_t, g.Merchant_Local_Timezone )" /> <mvt:comment><mvt:assign name="l.math" value="( ( l.today_dow - l.dayofweek ) - 7 ) * -1" /></mvt:comment> <mvt:assign name="l.math" value="( l.today_dow - l.dayofweek ) * -1" /> <mvt:if expr="l.math LT 1"/> <mvt:assign name="l.math" value="l.math * -1" /> </mvt:if> <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"/>