The Google Reviews survey opt-in module requires an estimated delivery day YYYY-MM-DD as part of the javascript snippet that is placed on the INVC screen. The store owner would like the estimate to be 7 days from the order date. My feeble attempt at reusing some mvt:assign code failed miserably.
The only thing that displays are the dashes
What am I doing wrong?
Code:
<mvt:assign name="l.settings:order:est_arrival_ts" value="l.settings:order:orderdate + (60 * 60 * 24 * 7)" /> <mvt:assign name="l.settings:order:est_arrival_year" value="time_t_year( l.settings:order:est_shipped_ts ,g.Merchant_Local_Timezone)" /> <mvt:assign name="l.settings:order:est_arrival_month" value="padl(time_t_month( l.settings:order:est_shipped_ts ,g.Merchant_Local_Timezone), 2, 0)" /> <mvt:assign name="l.settings:order:est_arrival_day" value="padl(time_t_dayofmonth( l.settings:order:est_shipped_ts ,g.Merchant_Local_Timezone), 2, 0)" /> "estimated_delivery_date": "&mvt:order:est_shipped_year;-&mvt:order:est_shipped_month;-&mvt:order:est_shipped_day;",
Code:
"estimated_delivery_date": "--",
Comment