Re: Ever use tool kit to flag new products?
I thought the following would work, but I was wrong:
Am I supposed to use vassign like i did?
I thought the following would work, but I was wrong:
Code:
<mvt:item name="toolkit" param="set_time_zone|our_time|-4" /> <mvt:item name="toolkit" param="time_t_year|nyear|our_time" /> <mvt:item name="toolkit" param="time_t_month|nmonth|our_time" /> <mvt:item name="toolkit" param="time_t_dayofmonth|ndayofmonth|our_time" /> <mvt:item name="toolkit" param="padl|cmonth|nmonth|2|0" /> <mvt:item name="toolkit" param="padl|cday|ndayofmonth|2|0" /> <mvt:item name="toolkit" param="sassign|sysdate|%year%%month%%day%" /> <mvt:item name="toolkit" param="vglosub|sysdate,%day%,cday" /> <mvt:item name="toolkit" param="vglosub|sysdate,%month%,cmonth" /> <mvt:item name="toolkit" param="vglosub|sysdate,%year%,nyear" /> <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:DATE"> <mvt:item name="toolkit" param="vassign|date_added|l.all_settings:product:customfield_values:customfields:DATE" /> <mvt:item name="toolkit" param="math_subtract|difference|g.sysdate|g.date_added" /> <mvt:if expr="g.difference LT '300'"> <img src="graphics/en-US/mmui/new.gif" width="32" height="21" alt="" border=0> </mvt:if> </mvt:if>
Comment