"promotions" Snippets


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>
 

Basket #24769

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

Basket #7652

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

Basket #7306

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

Basket #7267

This code will allow you to show/hide banners or other layout changes based on if a price group is active or not.
Created: 1446652933
View "Basket #7267"
<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;
 

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>