snippet-1446652860


Timed Promotions

This code will allow you to show/hide banners or other layout changes based on if a price group is active or not.
Created: 1446652942
View "Timed Promotions"
<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>
 

TImed Promotions

This code will allow you to show/hide banners or other layout changes based on if a price group is active or not.
Created: 1446652860
View "TImed Promotions"
<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>