A template used for creating dispatch notes in PDF format.
Kuvaus
PDF printout templates are now PDF themes.
From now on, the HTML templates for PDF printouts are defined in PDF themes, which are separate from the store theme. PDF themes are installed in the store's themes/print folder.
Any PDF templates included in the store themes will continue to function. However, we recommend you to create a designated PDF theme out of the printouts as soon as possible.
Dispatch notes are mostly used in tasks related to stock management (e.g. collecting products) so usually the list of ordered products constitutes the most important element in the template.
Dispatch notes can be printed in the admin panel, in the
section of the order page.You can see the template's HTML output in the admin panel by defining the page's URL address in the following way:
/flow/kuitti.php?t=dispatchnote&tilaus=DISPATCHNOTE&pdf=false
The template's HTML file is converted intothe PDF format by using the Prince XML program, which has a robust CSS support and, to some extent, supports JavaScript as well.
To see instructions for designers, check the program's user guide.
Sivupohjan ominaisuudet
- Sivupohjan sijainti
- themes/print/THEME/dispatchnote.html
- Sivupohjan URL
- The printouts do not have a URL address.
- Asetettu näkyvyys
Toteutus oletusteemassa
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{%Receipt} {OrderNumber}</title>
<link rel="stylesheet" type="text/css" href="{ThemeUrl}/css/printables.css?date=20170803"/>
</head>
<body>
<div id="ReceiptHeader">
<div id="Logo">
{Logo}
</div>
<div id="ReceiptTitle">
<h4>{ShopName}</h4>
<h1>{%DispatchNote} {OrderNumber}</h1>
</div>
</div>
<div id="InfoWrapper">
<div id="ShippingAddress">
{OrderShippingCompany(after:'<br/>')}
{OrderShippingName(after:'<br/>')}
{OrderShippingAddress(after:'<br/>')}
{OrderShippingZip}
{OrderShippingCity(after:'<br/>')}
{OrderShippingCountry}
</div>
<div id="OrderInfo">
<dl>
<dt>{%CheckoutCustomerInformation}</dt>
<dd>{OrderCustomerInformation}</dd>
</dl>
{OrderInfo}
</div>
</div>
{OrderProducts(
before: '
<div id="PrintProducts">
<table>
<thead>
<tr>
<th scope="col" class="CartProduct">{%Product}</th>
<th scope="col">{%ProductCode}</th>
<th scope="col">{%Quantity}</th>
<th scope="col">{%ShippingDate}</th>
</tr>
</thead>
<tbody>
',
helper: '{{
<tr>
<th class="CartProduct">
<h3>
{OrderProductName}
{OrderProductVariation(before: ' <br/><em class="ProductVariation">',after:'</em>')}
{OrderProductDownloadLink(before: ' <br/><span style="font-weight: normal;">{%ProductDownload}: </span><strong class="ProductDownloadLink">',after:'</strong>')}
</h3>
{ProductStockPlace(
before: '<dl><dt>{%Storage}</dt><dd>',
after: '</dd></dl>'
)}
{OrderProductChoices}
</th>
<td>{OrderProductCode}</td>
<td>{OrderProductQuantity}</td>
<td>{OrderProductShippingStatus}</td>
</tr>
}}',
after: '</tbody></table></div>'
)}
<div id="ReceiptContact">
<p id="PrintContactAddress">
{ContactCompany}
{ContactBusinessID(
before: ' (',
after: ')'
)}
<br>
{ContactStreetAddress1(
after: '
{ContactStreetAddress2(before: '<br>')}
'
)}
<br>
{ContactZip} {ContactCity(after:', ')} {ContactCountry}
</p>
<p id="PrintContactElectrical">
{ContactEmail(after:'<br>')}
{ContactInternet(after:'<br>')}
{ContactPhone(after:'<br>')}
</p>
<div id="PrintBanner">
{Banners(
name: 'print',
sort: 'random',
limit: 1,
helper: '{{
{BannerText}
}}'
)}
</div>
</div>
</body>
</html>