Snippet: 1471985372 - v1

This code will allow you to show/hide banners or other layout changes based on if a price group is active or not.
Created: 1471985372
View "Snippet: 1471985372 - v1"
<mvt:comment> Load the Price Group with the name of "BLACKFRIDAY" </mvt:comment> <mvt:do file="g.Module_Feature_PGR_DB" name="l.ok" value="PriceGroup_Load_Name( 'BLACKFRIDAY', l.price_group )" /> <mvt:comment> Check and see if the current time is between the price groups start and stop time </mvt:comment> <mvt:if expr="s.dyn_time_t GE l.price_group:dt_start AND s.dyn_time_t LE l.price_group:dt_end"> // The promotion for BLACK FRIDAY is active </mvt:if>