Bookmark page
Send to a Friend
Print this page
Experts in:
Importation
Exchequer
Bespoke Solutions for Exchequer

XML eGateway Loyalty Points Plug-in Online Send Promotional Literature:


A program to scan all Enterprise accounts records, and merges to an HTML template to produce a hard copy, or e-mail based on the points statement/promotional literature.

Loyalty Points Document Sender

Test Send

When [Start Send] is pressed the program will use the HTML in TemplateToSend\template.html to print, using PDF writer, and e-mail out promotional e-mails based on the template.html.   more information about template.html

Use [Test Send] to only process to accounts listed in <TestAccountList> tag in the system setting. This allows the merged data to be checked before sending for real. It is suggested that the accounts be a mix of small and large accounts. Depending on the options ticked it will show/print each document generated and/or e-mail all to <TestAccountEmail>

Live send

It is recommended to use [Print all Documents for real] first. This will print all the required documents to printer.

Then use [e-mail all Documents for real] this will start the e-mail process. The program will send up to x e-mails, as started in system setting <SMTPSendLimit> tag.   The remaineder will be send every day in <SMTPSendHour> until finished.

Documents are e-mailed if they have an email address entered in Enterprise account record.

e-mail opt out

This must be maintained manually.  it is suggested that e-mails contain a line "Please e-mail back STOP to unsubscribe".  Simply enter the e-mail address in the "OptOut" table, in LoyaltyPoints.mdb.


template.html File:


This file contains the HTML used to create the Promotional Literature.  It must contain the styles within the file, and any images must be stored and referenced on a web server.

The file can be customised using any web publishing package such as Dreamweaver.  Always make a backup first.  It basically contains simple tags, which are replaced with Exchequer data, and a table which lists the last few transactions the customer has earned points for.

Table Options

The header section of the file contains a section which defines:

Field Name

Description

lastXtransations

Put last x transactions in table, 0 if off

lastXdays

Put last x days transactions in table, 0 if off

emailSubject

Text to use in email subject

redemptiontext

Text to appear if line/transaction is/contains a redemption of points

redemptionBefore

Allows for formatting before and after a redemption line

redemptionAfter

 

 

Account Data Tags

The following tags are replaced with Enterprise data when merging data.

Field Name

Description

[AcCode]

Account code

[AcContact]

 

[AcName]

Company name

[AcAddress]

Main address on account

[AcPhone]

 

[AcEmail]

 

[AcPoints]

Loyalty Points earned

[AcUser1]  … [AcUser4] 

 

[date]

Todays date

Note: These are case sensitive

 


Table Structure

The format of the table to show the transactions is quite complex.  It contains transaction header and lines, with titles for each section.   This can be customised by altering the styles.

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
...
<!-- Settings for the Loyalty Points table and reports
<pointsTableOptions>
    <lastXtransations>5</lastXtransations>
    <lastXdays>0</lastXdays>
    <emailSubject>PureTone Loyalty Points [AcPoints]</emailSubject>

    <redemptiontext>**</redemptiontext>

    <redemptionBefore></redemptionBefore>
    <redemptionAfter></redemptionAfter>
</pointsTableOptions>
-->

</head>

 

<style type="text/css">

...

 

</style>

<body>

 

<p>Date:<strong>[date] </strong></p>
<p><strong>[AcCode]</strong></p>

 

... <!-- Promotional text-->

 

<table class="outerTable">
  <thead>
    <tr>
    <th><p>Points</p></th>
    <th><p>Our Ref</p></th>
    <th><p>Date</p></th>
    <th><p>YourRef</p></th>
    <th><p>AltRef</p></th>
    <th><p>User</p></th>       

    </tr>
    </thead>
  <tbody>

  <data1>  <!-- Transaction Header data -->
    <tr>
    <td class="cell runningTot">[runningTot]</td>
    <td class="cell ourRef">[ourRef] [redemptiontext]</td>
    <td class="cell transDate">[transDate]</td>
    <td class="cell yourRef">[yourRef]</td>
    <td class="cell altRef">[altRef]</td>
    <td class="cell user">[user]</td>
    </tr>
  </data1>


  <data2>  <!-- Transaction Line Headings -->
    <tr>
    <td class="cell2 " colspan="5">

    <table class="innerTable">
      <tr>
      <th scope="col"><p class="th2 th2r">Total Points</p></th>
      <th scope="col"><p class="th2 th2r">Points</p></th>
      <th scope="col"><p class="th2 th2r">Net</p></th>
      <th scope="col">&nbsp; </th>
      </tr>

      <data3>  <!-- Transaction Line data -->
      <tr>
      <td class="cell2 fig totPoints">[totPoints]</td>
      <td class="cell2 fig points">[points] [redemptiontext]</td>
      <td class="cell2 fig net">[net]</td>
      <td class="cell2 stockCode" colspan="2">[stockCode]</td>
      </tr>
      </data3>

 

    </table>
    </td>
    </tr>

  </data2>

  <data4> <!-- Table footer for openeing balance -->
    <tr>
    <td class="cell " colspan="5">[footerText]</td>
    </tr>
  </data4>
  </tbody>
</table>

 

... <!-- Promotional text-->

 

</body>
</html>

 

Forms a table like:

Loyalty points example report

 

 

Table Tags:<data1> section

The following tags are replaced with Enterprise Transaction Header data when merging data.

Field Name

Description

[ourRef]

Transaction ref

[transDate]

Transaction date

[yourRef]

Your Ref

[altRef]

alt Ref

[redemptiontext]

Text to appear if a redemption line

[runningTot]

Loyalty Points runnning total

Note: These are case sensitive

Table Tags:<data3> section

The following tags are replaced with Enterprise Transaction Line data when merging data.

Field Name

Description

[totPoints]

Loyalty Points runnning total

[points]

Point earned

[net]

Net for line

[desc]

Description

[redemptiontext]

Text to appear if a redemption line

[stockCode]

Stockcode and description

Note: These are case sensitive