Global Templates

Global Templates are a quick and easy way to set up the purchase process to have your websites design. Rather than customizing a template for each part of the purchase process, you create a single template and use a single token (###GLOBAL###) to indicate where you want to place the detail of the page.

Below is the default look setup as a global template. You can utilize this code and customize it for your site. To override our default css and javascript, you will just follow your custom css and javascript after ours which will essentially override it. You can also just override certain aspects like the background color with:

<style>
body { background-image:none; }
</style>

For all required global tokens, please visit the token reference guide. Here is the default global template:

The HTML code for this page is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>SWREG - ###CAPTION###</title>
<link href="###CSS(contentB.css)###" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="content">
###GLOBAL###
</div>
###SWREG###
###ENDBODY###</body>
</html>

To add the detail to your template, you must add the token ###GLOBAL### somewhere in your template. For each part of the purchase process this token will be replaced with the shopping basket, customer details etc.

You can test your template by uploading it under Customizable Template, then choosing "Global Template". Once the template is uploaded you have the ability to select the different "target templates" that will insert into the global token. Select the target template, and then click the binoculars next to your custom global template. This insertion allows you to see how your template design looks with purchase flow.

As you will see, the ###GLOBAL### token is replaced throughout the purchase process with the detail, only requiring one template to be maintained.

SWREG offers a paypal alternative, affordable ecommerce, payment processing, ecommerce solution, and an online software store with the ability to sell shareware.