g

Electronic Voucher Shipment

Overview

The electronic voucher shipment module allows customers to receive voucher PDFs as an attachment in order receipts. Each vouchers purchased will be in its own PDF file. 

There are certain conditions for the PDF files to be attached:

  1. This is only available in new checkout process.
  2. Only products marked as "Digital Products" will be included in the attachment
  3. Attachments will only be made is shipping option "download" is submitted from payment page.

Configuration

To mark a product as "Digital Product", simply go to product details page and switch on the "Digital Product" option.

Integration

As another condition for the PDF attachment, the attachments will only be made if shipping option "download" is submitted from payment page.

The "download" option is a fake shipping option that tells the backend to create the PDF and attach to email receipt. This option however is only applicable if all products in cart are digital products only.

There is a new template variable available in payment page for $no_physical_products, which is true when all products are digital. Please see sample integration code below.

Example
1
2
3
4
5
6
7
<!-- modules/prodcatalogueorder/templates/payment.html -->
 
<select name="delivery">
<{if $no_physical_products}>
<option value="download">Email as attachment</option>
<{/if}>
</select>