Warning: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: hr line 7 and body in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: body line 4 and html in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag html line 2 in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 QC: {DIGITAL-OBJECT-EXPIRATION-TIMESTAMP}
Modular Merchant
QuickCode™ Glossary
{DIGITAL-OBJECT-EXPIRATION-TIMESTAMP}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{DIGITAL-DELIVERY-FILE-BLOCK-BEGIN}

{DIGITAL-DELIVERY-FILE-BLOCK-END}

{DIGITAL-DELIVERY-PASSWORD-FIELD}

{DIGITAL-DOWNLOAD-EXPIRATION}

{DIGITAL-DOWNLOAD-PASSWORD}

{DIGITAL-DOWNLOAD-URL}

{DIGITAL-FILE-ACCESS-BUTTON}

{DIGITAL-FILE-CURRENT-ACCESS-NUMBER}

{DIGITAL-FILE-EXPIRATION-DATE}

{DIGITAL-FILE-EXPIRATION-TIMESTAMP}

{DIGITAL-FILE-IF-INSTRUCTIONS-BEGIN}

{DIGITAL-FILE-IF-INSTRUCTIONS-END}

{DIGITAL-FILE-INSTRUCTIONS}

{DIGITAL-FILE-NAME}

{DIGITAL-FILE-RELEASE-DATE}

{DIGITAL-FILE-REMAINING-ACCESS-NUMBER}

{DIGITAL-FILE-SIZE}

{DIGITAL-FILE-TOTAL-ACCESS-NUMBER}

{DIGITAL-FILE-ZONE-MESSAGE}

{DIGITAL-OBJECT-ACCESS-BUTTON}

{DIGITAL-OBJECT-CURRENT-ACCESS-NUMBER}

{DIGITAL-OBJECT-EXPIRATION-DATE}

{DIGITAL-OBJECT-EXPIRATION-TIMESTAMP}

{DIGITAL-OBJECT-INSTRUCTIONS}

{DIGITAL-OBJECT-NAME}

{DIGITAL-OBJECT-RELEASE-DATE}

{DIGITAL-OBJECT-REMAINING-ACCESS-NUMBER}

{DIGITAL-OBJECT-SIZE}

{DIGITAL-OBJECT-TOTAL-ACCESS-NUMBER}

{DIGITAL-OBJECT-ZONE-MESSAGE}

{FIELD-DIGITAL-DELIVERY-PASSWORD}

{IF-DIGITAL-OBJECT-INSTRUCTIONS-BEGIN}

{IF-DIGITAL-OBJECT-INSTRUCTIONS-END}

{IF-ORDER-CONTAINS-DIGITAL-PRODUCTS-BEGIN}

{IF-ORDER-CONTAINS-DIGITAL-PRODUCTS-END}

Digital Delivery > {DIGITAL-OBJECT-EXPIRATION-TIMESTAMP}
<< {DIGITAL-OBJECT-EXPIRATION-DATE} {DIGITAL-OBJECT-INSTRUCTIONS} >>
{DIGITAL-OBJECT-EXPIRATION-TIMESTAMP} Updated: 02/19/2013

The {DIGITAL-OBJECT-EXPIRATION-TIMESTAMP} QuickCode Tag may be used within the digital_delivery.template.php template to display the expiration date in Unix timestamp format of each digital object listed on the digital delivery storefront page.

While Unix time is convenient for programming, it may be difficult for a human to interpret. A more human-friendly option is the {DIGITAL-OBJECT-EXPIRATION-DATE} QuickCode Tag, which displays the expiration date in standard time.

Requirements / Prerequisites

The {DIGITAL-OBJECT-EXPIRATION-TIMESTAMP} QuickCode Tag may only be used within the digital_delivery.template.php template, and must be used between the {DIGITAL-DELIVERY-FILE-BLOCK-BEGIN} and {DIGITAL-DELIVERY-FILE-BLOCK-END} QuickCode Tags, which must be enclosed within an HTML form.

A digital object's expiration is calculated based on the digital object's Shelf Life settings in the Digital Object Editor. For instance, if the digital object's Shelf Life is set to 72 hours, and a customer places an order that includes the digital object at 11:48 am on February 23, 2013, the customer's access to the digital object will expire at 11:48 am on Feburary 26, 2013.

Example of Use

If the following code is added to the digital_delivery.template.php template:

Code
<form id="download_delivery_form" name="download_delivery_form" method="post" action="{THIS-PAGE}">
<table style="border:1px solid black;">
<caption><b>Download your purchased files:</b></caption>
    {DIGITAL-DELIVERY-FILE-BLOCK-BEGIN}
        <tr>
              <th>File Name: {DIGITAL-OBJECT-NAME}</th>
        </tr>
        <tr>
              <td>Expiration Date: {DIGITAL-OBJECT-EXPIRATION-DATE}</td>
        </tr>
        <tr>
              <td>Expiration Timestamp: {DIGITAL-OBJECT-EXPIRATION-TIMESTAMP}</td>
        </tr>
        <tr>
              <td>{DIGITAL-OBJECT-ACCESS-BUTTON}</td>
        </tr>
    {DIGITAL-DELIVERY-FILE-BLOCK-END}
</table>    
</form>


If a customer placed an order that included the digital objects named Example PDF (with an expiration date of December 31, 2013 at 11:59 pm), Example MP3 (with an expiration date of December 31, 2013 at 11:59 pm), and Example ZIP (with an expiration date of February 26, 2013 at 11:48 am), when the customer accessed the digital delivery page for that order, the following would display:

Download your purchased files:
File Name: Example PDF
Expiration Date: December 31, 2013 11:59 pm
Expiration Timestamp: 1388563199
File Name: Example MP3
Expiration Date: December 31, 2013 11:59 pm
Expiration Timestamp: 1388563199
File Name: Example ZIP
Release Date: February 26, 2013 11:48 am
Expiration Timestamp: 1361908098

 

Source Code Source Code Updated: Warning: date() expects parameter 2 to be long, string given in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 796
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {DIGITAL-OBJECT-EXPIRATION-TIMESTAMP} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2019 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map