This article has moved to a new home. View the updated version Base Tag Library

barcode_url

Generates a barcode based on the selected parameters

Example

[%barcode_url fn:'' height:'10'%][@order_id@][%/barcode_url%]

Usage

The barcode_url tag will generate a barcode based on either the fn:'' parameter or whatever is within the tag. So for our sample above, the [@order_id@] would be taken a barcode generated from it. But this can be replaced with plain text or other tags as necessary.

If you wanted to display a barcode image of an order, you could place the barcode function in a img tag like the following:

<img src="[%barcode_url fn:'' height:'10'%][@order_id@][%/barcode_url%]"/>

barcode_url Parameters

Name Options Description
fn:'' article, code128, order, other Specifices the barcode for certain functions, can be empty
height:'' Integer The height of the &lt;img&gt; element generated, will not effect the actual size of the barcode within it, just create extra white space as necessary.
width:'' Integer The width of the &lt;img&gt; element generated, will not effect the actual size of the barcode within it, just create extra white space as necessary.
scale:'' Integer The scale of the barcode, or effective size. 2 would use 2 pixels per barcode unit, making it twice as big in each dimension, 3 would be 3 pixels per barcode unit and so forth.
rotate:'' 90 Rotates the barcode 90°, currently there are no other angles for this param.
cngmt:'' [@cngmt_id@] Renders a barcode for the specific consignment ID
art:'' [@article_id@] Renders a barcode for the specific shipping article ID
barcodetype:'' String Specificies barcode types on certain shipping documents