Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Miva - Digital Download Terms Agreement Page
<mvt:foreach iterator="item" array="order:groups">
<!-- ... -->
<mvt:foreach iterator="option" array="item:options">
<mvt:if expr="l.settings:option:option_id">
&mvt:option:attr_code;: &mvt:option:opt_code;
<mvt:elseif expr="NOT ISNULL l.settings:option:data">
<mvt:if expr="( l.settings:option:attr_code EQ 'digitaldownload' ) AND ( NOT ISNULL l.settings:option:digital_download_url )">
<!-- Default: -->
<a href="&mvte:option:digital_download_url;" target="_blank">Digital Download</a>
<!-- Terms Page Option #1: -->
<a href="&mvte:urls:download_terms_agreement:auto_sep;DownloadUrl=&mvta:option:digital_download_url;" target="_blank">Download Files</a><br>
<!-- Terms Page Option #2: -->
<mvt:assign name="l.settings:option:digital_download_code" value="gettoken( l.settings:option:digital_download_url, '=', 3 )" />
<a href="&mvte:urls:download_terms_agreement:auto_sep;DigitalDownload=&mvta:option:digital_download_code;" target="_blank">Download Files</a><br>
<mvt:else>
&mvt:option:attr_code;: &mvt:option:data;
</mvt:if>
<mvt:elseif expr="NOT ISNULL l.settings:option:data_long">
&mvt:option:attr_code;: &mvt:option:data_long;
<mvt:else>
&mvt:option:attr_code;
</mvt:if>
<!-- ... -->
</mvt:foreach>
</mvt:foreach>
Please carefully review the <a href="#">Software License Agreement</a> and click the I accept button below to download the file(s) ordered.
If you have questions about the license agreement, please email <a href="mailto:legal@example.com">legal@example.com</a>.
<mvt:if expr="g.DigitalDownload">
<button type="button" onclick="window.location = 'https://&mvte:global:domain:name;/mm5/download.mvc?Store_Code=&mvte:global:Store_Code;&DigitalDownload=&mvte:global:DigitalDownload;'" class="button">I accept the License Agreement</button>
</mvt:if>
<mvt:if expr="g.DownloadUrl">
<button type="button" onclick="window.location = '&mvte:global:DownloadUrl;'" class="button">I accept the License Agreement</button>
</mvt:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment