snippet-1431366820


View "Estimated Shipping Delivery Dates"
<mvt:comment><!-- Days --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:assign name="l.settings:days[1]:name" value="'Sunday'" /> <mvt:assign name="l.settings:days[1]:time" value="1431284400" /> <mvt:assign name="l.settings:days[2]:name" value="'Monday'" /> <mvt:assign name="l.settings:days[2]:time" value="1431370800" /> <mvt:assign name="l.settings:days[3]:name" value="'Tuesday'" /> <mvt:assign name="l.settings:days[3]:time" value="1431457200" /> <mvt:assign name="l.settings:days[4]:name" value="'Wednesday'" /> <mvt:assign name="l.settings:days[4]:time" value="1431543600" /> <mvt:assign name="l.settings:days[5]:name" value="'Thursday'" /> <mvt:assign name="l.settings:days[5]:time" value="1431630000" /> <mvt:assign name="l.settings:days[6]:name" value="'Friday'" /> <mvt:assign name="l.settings:days[6]:time" value="1431716400" /> <mvt:assign name="l.settings:days[7]:name" value="'Saturday'" /> <mvt:assign name="l.settings:days[7]:time" value="1431802800" /> <mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:foreach iterator="day" array="days"> <mvt:assign name="l.settings:day:month" value="time_t_month( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:day" value="time_t_dayofmonth( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:formatted_date" value="l.settings:day:month $ '/' $ l.settings:day:day" /> <h2>Order Placed: &mvt:day:name; @ &mvt:day:formatted_date;</h2> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:assign name="l.settings:method:elapsed:days" value="0" /> <mvt:assign name="l.settings:method:shipping:days" value="0" /> <mvt:assign name="l.settings:method:processing:days" value="0" /> <mvt:assign name="l.settings:method:delivered" value="''" /> <mvt:assign name="l.settings:method:estimated:min" value="''" /> <mvt:assign name="l.settings:method:estimated:max" value="''" /> <mvt:while expr="ISNULL l.settings:method:delivered"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="l.settings:day:time + l.settings:method:elapsed:duration"/> <mvt:assign name="l.settings:method:estimated:month" value="time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:day" value="time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:if expr="l.settings:method:estimated:dayofweek GT 1 AND l.settings:method:estimated:dayofweek LT 7"> <mvt:if expr="l.settings:method:processing:days EQ 0"> </mvt:if> <mvt:assign name="l.settings:method:processing:days" value="l.settings:method:processing:days + 1" /> </mvt:if> <mvt:if expr="l.settings:method:processing:days GT 1 AND l.settings:method:estimated:dayofweek GT 1"> <mvt:assign name="l.settings:method:shipping:days" value="l.settings:method:shipping:days + 1" /> </mvt:if> <mvt:if expr="ISNULL l.settings:method:estimated:min AND l.settings:method:shipping:days GE l.settings:method:delivery:min AND (l.settings:method:estimated:dayofweek GT 1 AND l.settings:method:estimated:dayofweek LT 7)"> <mvt:assign name="l.settings:method:estimated:min" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:estimated:min_day" value="l.settings:days[l.settings:method:estimated:dayofweek]:name" /> </mvt:if> <mvt:if expr="ISNULL l.settings:method:estimated:max AND l.settings:method:shipping:days GE l.settings:method:delivery:max AND (l.settings:method:estimated:dayofweek GT 1 AND l.settings:method:estimated:dayofweek LT 7)"> <mvt:assign name="l.settings:method:estimated:max" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:estimated:max_day" value="l.settings:days[l.settings:method:estimated:dayofweek]:name" /> <mvt:assign name="l.settings:method:delivered" value="1" /> </mvt:if> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> Should Arrive: &mvt:method:estimated:min_day; &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max_day; &mvt:method:estimated:max;</mvt:if> </p> </mvt:foreach> <hr> </mvt:foreach>
 
View "Estimated Shipping Delivery Dates"
<mvt:comment><!-- Days --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:assign name="l.settings:days[1]:name" value="'Sunday'" /> <mvt:assign name="l.settings:days[1]:time" value="1431284400" /> <mvt:assign name="l.settings:days[2]:name" value="'Monday'" /> <mvt:assign name="l.settings:days[2]:time" value="1431370800" /> <mvt:assign name="l.settings:days[3]:name" value="'Tuesday'" /> <mvt:assign name="l.settings:days[3]:time" value="1431457200" /> <mvt:assign name="l.settings:days[4]:name" value="'Wednesday'" /> <mvt:assign name="l.settings:days[4]:time" value="1431543600" /> <mvt:assign name="l.settings:days[5]:name" value="'Thursday'" /> <mvt:assign name="l.settings:days[5]:time" value="1431630000" /> <mvt:assign name="l.settings:days[6]:name" value="'Friday'" /> <mvt:assign name="l.settings:days[6]:time" value="1431716400" /> <mvt:assign name="l.settings:days[7]:name" value="'Saturday'" /> <mvt:assign name="l.settings:days[7]:time" value="1431802800" /> <mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:foreach iterator="day" array="days"> <mvt:assign name="l.settings:day:month" value="time_t_month( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:day" value="time_t_dayofmonth( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:formatted_date" value="l.settings:day:month $ '/' $ l.settings:day:day" /> <h2>Order Placed: &mvt:day:name; @ &mvt:day:formatted_date;</h2> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:assign name="l.settings:method:elapsed:days" value="0" /> <mvt:assign name="l.settings:method:shipping:days" value="0" /> <mvt:assign name="l.settings:method:processing:days" value="0" /> <mvt:assign name="l.settings:method:delivered" value="''" /> <mvt:assign name="l.settings:method:estimated:min" value="''" /> <mvt:assign name="l.settings:method:estimated:max" value="''" /> <mvt:assign name="l.settings:method:counter" value="0" /> <mvt:comment> <!-- <br><br> <b>&mvt:method:name;</b><br> --> </mvt:comment> <mvt:while expr="ISNULL l.settings:method:delivered AND l.settings:method:counter LT 20"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="l.settings:day:time + l.settings:method:elapsed:duration"/> <mvt:assign name="l.settings:method:estimated:month" value="time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:day" value="time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:if expr="l.settings:method:estimated:dayofweek GT 1 AND l.settings:method:estimated:dayofweek LT 7"> <mvt:if expr="l.settings:method:processing:days EQ 0"> <mvt:comment><!-- <mvt:eval expr="l.settings:days[l.settings:method:estimated:dayofweek]:name"/> Processing +1<br> --></mvt:comment> </mvt:if> <mvt:assign name="l.settings:method:processing:days" value="l.settings:method:processing:days + 1" /> </mvt:if> <mvt:if expr="l.settings:method:processing:days GT 1 AND l.settings:method:estimated:dayofweek GT 1"> <mvt:comment><!-- <mvt:eval expr="l.settings:days[l.settings:method:estimated:dayofweek]:name"/> Shipping +1<br> --></mvt:comment> <mvt:assign name="l.settings:method:shipping:days" value="l.settings:method:shipping:days + 1" /> </mvt:if> <mvt:if expr="ISNULL l.settings:method:estimated:min AND l.settings:method:shipping:days GE l.settings:method:delivery:min AND (l.settings:method:estimated:dayofweek GT 1 AND l.settings:method:estimated:dayofweek LT 7)"> <mvt:assign name="l.settings:method:estimated:min" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:estimated:min_day" value="l.settings:days[l.settings:method:estimated:dayofweek]:name" /> <mvt:comment><!-- Delivered (Min.): <mvt:eval expr="l.settings:days[l.settings:method:estimated:dayofweek]:name"/><br> --></mvt:comment> </mvt:if> <mvt:if expr="ISNULL l.settings:method:estimated:max AND l.settings:method:shipping:days GE l.settings:method:delivery:max AND (l.settings:method:estimated:dayofweek GT 1 AND l.settings:method:estimated:dayofweek LT 7)"> <mvt:assign name="l.settings:method:estimated:max" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:estimated:max_day" value="l.settings:days[l.settings:method:estimated:dayofweek]:name" /> <mvt:comment><!-- Delivered (Max.): <mvt:eval expr="l.settings:days[l.settings:method:estimated:dayofweek]:name"/><br> --></mvt:comment> <mvt:assign name="l.settings:method:delivered" value="1" /> </mvt:if> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> Should Arrive: &mvt:method:estimated:min_day; &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max_day; &mvt:method:estimated:max;</mvt:if> </p> </mvt:foreach> <hr> </mvt:foreach>
 

Snippet: 1431366820 - v6

Created: 1431379527
View "Snippet: 1431366820 - v6"
<mvt:comment><!-- Days --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:assign name="l.settings:days[1]:name" value="'Sunday'" /> <mvt:assign name="l.settings:days[1]:time" value="1431284400" /> <mvt:assign name="l.settings:days[2]:name" value="'Monday'" /> <mvt:assign name="l.settings:days[2]:time" value="1431370800" /> <mvt:assign name="l.settings:days[3]:name" value="'Tuesday'" /> <mvt:assign name="l.settings:days[3]:time" value="1431457200" /> <mvt:assign name="l.settings:days[4]:name" value="'Wednesday'" /> <mvt:assign name="l.settings:days[4]:time" value="1431543600" /> <mvt:assign name="l.settings:days[5]:name" value="'Thursday'" /> <mvt:assign name="l.settings:days[5]:time" value="1431630000" /> <mvt:assign name="l.settings:days[6]:name" value="'Friday'" /> <mvt:assign name="l.settings:days[6]:time" value="1431716400" /> <mvt:assign name="l.settings:days[7]:name" value="'Saturday'" /> <mvt:assign name="l.settings:days[7]:time" value="1431802800" /> <mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:foreach iterator="day" array="days"> <mvt:assign name="l.settings:day:month" value="time_t_month( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:day" value="time_t_dayofmonth( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:formatted_date" value="l.settings:day:month $ '/' $ l.settings:day:day" /> <h2>Order Placed: &mvt:day:name; @ &mvt:day:formatted_date;</h2> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:assign name="l.settings:method:elapsed:days" value="0" /> <mvt:assign name="l.settings:method:valid:days" value="0" /> <mvt:assign name="l.settings:method:min:delivered" value="''" /> <mvt:assign name="l.settings:method:counter" value="0" /> <mvt:while expr="ISNULL l.settings:method:min:delivered AND l.settings:method:counter LT 20"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:if expr="l.settings:method:estimated:dayofweek GT 0 AND l.settings:method:estimated:dayofweek NE 1 AND l.settings:method:estimated:dayofweek NE 7"> <mvt:assign name="l.settings:method:valid:days" value="l.settings:method:valid:days + 1" /> </mvt:if> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="l.settings:day:time + l.settings:method:elapsed:duration"/> <mvt:assign name="l.settings:method:estimated:month" value="time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:day" value="time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:min"> <mvt:assign name="l.settings:method:estimated:min" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> </mvt:if> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:max"> <mvt:assign name="l.settings:method:estimated:max" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:min:delivered" value="1" /> </mvt:if> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> Should Arrive: &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max;</mvt:if> </p> </mvt:foreach> <hr> </mvt:foreach>
 

Snippet: 1431366820 - v5

Created: 1431379264
View "Snippet: 1431366820 - v5"
<mvt:comment><!-- Days --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:assign name="l.settings:days[1]:name" value="'Sunday'" /> <mvt:assign name="l.settings:days[1]:time" value="1431284400" /> <mvt:assign name="l.settings:days[2]:name" value="'Monday'" /> <mvt:assign name="l.settings:days[2]:time" value="1431370800" /> <mvt:assign name="l.settings:days[3]:name" value="'Tuesday'" /> <mvt:assign name="l.settings:days[3]:time" value="1431457200" /> <mvt:assign name="l.settings:days[4]:name" value="'Wednesday'" /> <mvt:assign name="l.settings:days[4]:time" value="1431543600" /> <mvt:assign name="l.settings:days[5]:name" value="'Thursday'" /> <mvt:assign name="l.settings:days[5]:time" value="1431630000" /> <mvt:assign name="l.settings:days[6]:name" value="'Friday'" /> <mvt:assign name="l.settings:days[6]:time" value="1431716400" /> <mvt:assign name="l.settings:days[7]:name" value="'Saturday'" /> <mvt:assign name="l.settings:days[7]:time" value="1431802800" /> <mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:foreach iterator="day" array="days"> <mvt:assign name="l.settings:day:month" value="time_t_month( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:day" value="time_t_dayofmonth( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:formatted_date" value="l.settings:day:month $ '/' $ l.settings:day:day" /> <h2>Order Placed: &mvt:day:name; @ &mvt:day:formatted_date;</h2> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:assign name="l.settings:method:elapsed:days" value="0" /> <mvt:assign name="l.settings:method:valid:days" value="0" /> <mvt:assign name="l.settings:method:min:delivered" value="''" /> <mvt:assign name="l.settings:method:counter" value="0" /> <mvt:while expr="ISNULL l.settings:method:min:delivered AND l.settings:method:counter LT 20"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="l.settings:day:time + l.settings:method:elapsed:duration"/> <mvt:assign name="l.settings:method:estimated:month" value="time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:day" value="time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:min"> <mvt:assign name="l.settings:method:estimated:min" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> </mvt:if> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:max"> <mvt:assign name="l.settings:method:estimated:max" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:min:delivered" value="1" /> </mvt:if> <mvt:if expr="l.settings:method:estimated:dayofweek NE 1 AND l.settings:method:estimated:dayofweek NE 7"> <mvt:assign name="l.settings:method:valid:days" value="l.settings:method:valid:days + 1" /> </mvt:if> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> Should Arrive: &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max;</mvt:if> </p> </mvt:foreach> <hr> </mvt:foreach>
 

Snippet: 1431366820 - v4

Created: 1431378995
View "Snippet: 1431366820 - v4"
<mvt:comment><!-- Days --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:assign name="l.settings:days[1]:name" value="'Sunday'" /> <mvt:assign name="l.settings:days[1]:time" value="1431284400" /> <mvt:assign name="l.settings:days[2]:name" value="'Monday'" /> <mvt:assign name="l.settings:days[2]:time" value="1431370800" /> <mvt:assign name="l.settings:days[3]:name" value="'Tuesday'" /> <mvt:assign name="l.settings:days[3]:time" value="1431457200" /> <mvt:assign name="l.settings:days[4]:name" value="'Wednesday'" /> <mvt:assign name="l.settings:days[4]:time" value="1431543600" /> <mvt:assign name="l.settings:days[5]:name" value="'Thursday'" /> <mvt:assign name="l.settings:days[5]:time" value="1431630000" /> <mvt:assign name="l.settings:days[6]:name" value="'Friday'" /> <mvt:assign name="l.settings:days[6]:time" value="1431716400" /> <mvt:assign name="l.settings:days[7]:name" value="'Saturday'" /> <mvt:assign name="l.settings:days[7]:time" value="1431802800" /> <mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:foreach iterator="day" array="days"> <mvt:assign name="l.settings:day:month" value="time_t_month( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:day" value="time_t_dayofmonth( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:formatted_date" value="l.settings:day:month $ '/' $ l.settings:day:day" /> <h2>Order Placed: &mvt:day:name; @ &mvt:day:formatted_date;</h2> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:while expr="ISNULL l.settings:method:min:delivered AND l.settings:method:counter LT 20"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="l.settings:day:time + l.settings:method:elapsed:duration"/> <mvt:assign name="l.settings:method:estimated:month" value="time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:day" value="time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="l.settings:method:estimated:dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:min"> <mvt:assign name="l.settings:method:estimated:min" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> </mvt:if> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:max"> <mvt:assign name="l.settings:method:estimated:max" value="l.settings:method:estimated:month $ '/' $ l.settings:method:estimated:day" /> <mvt:assign name="l.settings:method:min:delivered" value="1" /> </mvt:if> <mvt:if expr="l.settings:method:estimated:dayofweek NE 1 AND l.settings:method:estimated:dayofweek NE 7"> <mvt:assign name="l.settings:method:valid:days" value="l.settings:method:valid:days + 1" /> </mvt:if> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> Should Arrive: &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max;</mvt:if> </p> </mvt:foreach> <hr> </mvt:foreach>
 

Snippet: 1431366820 - v3

Created: 1431378888
View "Snippet: 1431366820 - v3"
<mvt:comment><!-- Days --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:assign name="l.settings:days[1]:name" value="'Sunday'" /> <mvt:assign name="l.settings:days[1]:time" value="1431284400" /> <mvt:assign name="l.settings:days[2]:name" value="'Monday'" /> <mvt:assign name="l.settings:days[2]:time" value="1431370800" /> <mvt:assign name="l.settings:days[3]:name" value="'Tuesday'" /> <mvt:assign name="l.settings:days[3]:time" value="1431457200" /> <mvt:assign name="l.settings:days[4]:name" value="'Wednesday'" /> <mvt:assign name="l.settings:days[4]:time" value="1431543600" /> <mvt:assign name="l.settings:days[5]:name" value="'Thursday'" /> <mvt:assign name="l.settings:days[5]:time" value="1431630000" /> <mvt:assign name="l.settings:days[6]:name" value="'Friday'" /> <mvt:assign name="l.settings:days[6]:time" value="1431716400" /> <mvt:assign name="l.settings:days[7]:name" value="'Saturday'" /> <mvt:assign name="l.settings:days[7]:time" value="1431802800" /> <mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:foreach iterator="day" array="days"> <mvt:assign name="l.settings:day:month" value="time_t_month( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:day" value="time_t_dayofmonth( l.settings:day:time, g.timezone_offset )" /> <mvt:assign name="l.settings:day:formatted_date" value="l.settings:day:month $ '/' $ l.settings:day:day" /> <h2>Order Placed: &mvt:day:name; @ &mvt:day:formatted_date;</h2> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:while expr="ISNULL l.settings:method:min:delivered AND l.settings:method:counter LT 20"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="l.settings:day:time + l.settings:method:elapsed:duration"/> <mvt:assign name="g.month" value="time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="g.day" value="time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="g.dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="g.formatted_future_date" value="g.year $ '-' $ g.month $ '-' $ g.day $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec" /> <mvt:comment><!-- Elapsed: &mvte:global:month;/&mvte:global:day;<br> --></mvt:comment> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:min"> <mvt:assign name="l.settings:method:estimated:min" value="g.month $ '/' $ g.day" /> </mvt:if> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:max"> <mvt:assign name="l.settings:method:estimated:max" value="g.month $ '/' $ g.day" /> <mvt:assign name="l.settings:method:min:delivered" value="1" /> </mvt:if> <mvt:if expr="g.dayofweek NE 1 AND g.dayofweek NE 7"> <mvt:assign name="l.settings:method:valid:days" value="l.settings:method:valid:days + 1" /> <mvt:comment><!-- Valid Shipping: &mvte:global:month;/&mvte:global:day;<br> --></mvt:comment> </mvt:if> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> Should Arrive: &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max;</mvt:if> </p> </mvt:foreach> <hr> </mvt:foreach>
 

Snippet: 1431366820 - v2

Created: 1431370978
View "Snippet: 1431366820 - v2"
<mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:comment><!-- Initial Time --></mvt:comment> <mvt:assign name="g.sun" value="1431284400" /> <mvt:assign name="g.mon" value="1431370800" /> <mvt:assign name="g.tue" value="1431457200" /> <mvt:assign name="g.wed" value="1431543600" /> <mvt:assign name="g.thu" value="1431630000" /> <mvt:assign name="g.fri" value="1431716400" /> <mvt:assign name="g.sat" value="1431802800" /> <mvt:assign name="g.current_time" value="s.dyn_time_t" /> <mvt:assign name="g.current_time" value="1431284400" /> <mvt:comment><!-- <mvt:assign name="g.timezone_offset" value="'-4'" /> --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:foreach iterator="method" array="shippingmethods"> <mvt:while expr="ISNULL l.settings:method:min:delivered AND l.settings:method:counter LT 20"> <mvt:assign name="l.settings:method:counter" value="l.settings:method:counter + 1" /> <mvt:assign name="l.settings:method:elapsed:duration" value="60 * 60 * 24 * l.settings:method:elapsed:days" /> <mvt:assign name="l.settings:method:elapsed:future_time" value="g.current_time + l.settings:method:elapsed:duration"/> <mvt:assign name="g.month" value="padl(time_t_month( l.settings:method:elapsed:future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( l.settings:method:elapsed:future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.dayofweek" value="time_t_dayofweek( l.settings:method:elapsed:future_time, g.timezone_offset )" /> <mvt:assign name="g.formatted_future_date" value="g.year $ '-' $ g.month $ '-' $ g.day $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec" /> <mvt:comment><!-- Elapsed: &mvte:global:month;/&mvte:global:day;<br> --></mvt:comment> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:min"> <mvt:assign name="l.settings:method:estimated:min" value="g.month $ '/' $ g.day" /> </mvt:if> <mvt:if expr="l.settings:method:valid:days EQ l.settings:method:delivery:max"> <mvt:assign name="l.settings:method:estimated:max" value="g.month $ '/' $ g.day" /> <mvt:assign name="l.settings:method:min:delivered" value="1" /> </mvt:if> <mvt:if expr="g.dayofweek NE 1 AND g.dayofweek NE 7"> <mvt:assign name="l.settings:method:valid:days" value="l.settings:method:valid:days + 1" /> <mvt:comment><!-- Valid Shipping: &mvte:global:month;/&mvte:global:day;<br> --></mvt:comment> </mvt:if> <mvt:assign name="l.settings:method:elapsed:days" value="l.settings:method:elapsed:days + 1" /> </mvt:while> </mvt:foreach> <mvt:foreach iterator="method" array="shippingmethods"> <p> <b>&mvt:method:name;</b><br> Estimated Delivery: &mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> business day(s)<br> (Should arrive &mvt:method:estimated:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max"> to &mvt:method:estimated:max;</mvt:if>) </p> </mvt:foreach>
 

Snippet: 1431366820 - v1

Created: 1431366820
View "Snippet: 1431366820 - v1"
<mvt:comment><!-- Shipping Methods --></mvt:comment> <mvt:assign name="l.settings:shippingmethods[1]:name" value="'Next Day'" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:min" value="1" /> <mvt:assign name="l.settings:shippingmethods[1]:delivery:max" value="1" /> <mvt:assign name="l.settings:shippingmethods[2]:name" value="'2nd Day'" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:min" value="2" /> <mvt:assign name="l.settings:shippingmethods[2]:delivery:max" value="2" /> <mvt:assign name="l.settings:shippingmethods[3]:name" value="'Ground'" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:min" value="7" /> <mvt:assign name="l.settings:shippingmethods[3]:delivery:max" value="10" /> <mvt:comment><!-- Initial Time --></mvt:comment> <mvt:assign name="g.sun" value="1431284400" /> <mvt:assign name="g.mon" value="1431370800" /> <mvt:assign name="g.tue" value="1431457200" /> <mvt:assign name="g.wed" value="1431543600" /> <mvt:assign name="g.thu" value="1431630000" /> <mvt:assign name="g.fri" value="1431716400" /> <mvt:assign name="g.sat" value="1431802800" /> <mvt:assign name="g.current_time" value="s.dyn_time_t" /> <mvt:comment><!-- <mvt:assign name="g.timezone_offset" value="'-4'" /> --></mvt:comment> <mvt:assign name="g.timezone_offset" value="'local'" /> <mvt:foreach iterator="method" array="shippingmethods"> <hr> &mvt:method:name; (&mvt:method:delivery:min;<mvt:if expr="l.settings:method:delivery:min NE l.settings:method:delivery:max">-&mvt:method:delivery:max;</mvt:if> days)<br> <mvt:comment><!-- Delivery Min --></mvt:comment> <mvt:assign name="g.duration" value="60 * 60 * 24 * l.settings:method:delivery:min" /> <mvt:assign name="g.future_time" value="g.current_time + g.duration"/> <mvt:assign name="g.year" value="time_t_year( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.month" value="padl(time_t_month( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.24hour" value="padl(time_t_hour( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.min" value="padl(time_t_min( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.sec" value="padl(time_t_sec( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.formatted_future_date" value="g.year $ '-' $ g.month $ '-' $ g.day $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec" /> Estimated Delivery: &mvte:global:month;/&mvte:global:day; <mvt:if expr="l.settings:method:min EQ l.settings:method:max"> <mvt:foreachcontinue/> </mvt:if> <mvt:comment><!-- Delivery Max --></mvt:comment> <mvt:assign name="g.duration" value="60 * 60 * 24 * l.settings:method:delivery:max" /> <mvt:assign name="g.future_time" value="g.current_time + g.duration"/> <mvt:assign name="g.year" value="time_t_year( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.month" value="padl(time_t_month( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.24hour" value="padl(time_t_hour( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.min" value="padl(time_t_min( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.sec" value="padl(time_t_sec( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.formatted_future_date" value="g.year $ '-' $ g.month $ '-' $ g.day $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec" /> -&mvte:global:month;/&mvte:global:day; </mvt:foreach>