Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Miva - Price Group Scheduled/Timed Promo Content
<mvt:do file="g.Module_Feature_PGR_DB" name="l.success" value="PriceGroup_Load_Name( 'Timed Promo #1', l.timed_promo )" />
<mvt:if expr="(l.timed_promo:dt_start EQ 0 OR s.dyn_time_t GT l.timed_promo:dt_start) AND (l.timed_promo:dt_start EQ 0 OR s.dyn_time_t LT l.timed_promo:dt_end)">
<mvt:assign name="l.timed_promo:is_active" value="1" />
<mvt:else>
<mvt:assign name="l.timed_promo:is_active" value="0" />
</mvt:if>
<mvt:if expr="l.timed_promo:is_active">
<mvt:item name="readytheme" param="image( 'timed_promo' )" />
<mvt:else>
<p><em>No promo for you :-(</em></p>
</mvt:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment