Customize your label layout

customize-label

For direct printing of your labels in your Hiboutik account, you must use a ZPL (Zebra Programming Language) compatible label printer.
To customize your product label layout, you must go in Settings/Printing/Labels.

 

1/ Dynamic content

The content (text or barcode) printed on your label has x and y positions. x is the position of your content from the left side of your label and y is the position of your content from the top side of your label. x and y values are in dots.
Depending on the resolution of your printer and the size of your labels, you will have more or less dots on the width and height of your label. You will have to play with x and y values to position your content at the right place.

The contents you can print on your labels are :
– the ID of your product: <hibou_print_zpl_products_id>,
– the name of your product : <hibou_print_zpl_products_name>,
– the category of your product : <hibou_print_zpl_products_category>,
– the price of your product : <hibou_print_zpl_products_price>,
– th price of your product without decimals: <hibou_print_zpl_products_price_round_0>,
– the discount price of your product : <hibou_print_zpl_products_discount_price>,
– the currency of your account: <hibou_print_zpl_currency>,
– the supplier reference of your product : <hibou_print_zpl_products_ref_manufacturer>,
– the size of your product : <hibou_print_zpl_products_size>,
– Any free-text,
– and the barcode of your product.

 

2/ Set up your text contents

For text content (<hibou_print_zpl_add_text>), you must set the following variables in order :
– the position (x and y in points)
– the font (A to Z or 0 to 9),
– the font size (in dots),
– the text orientation (N for horizontal, R for vertical, I horizontal inverted, B pour vertical inverted)
– the font height (in dots),
– the font width (by default you can set the same value as font height).
Variables are separated by pipes (|).

Example:
<hibou_print_zpl_add_text>20|10|D|N|30|30|<hibou_print_zpl_products_price> GBP
<hibou_print_zpl_add_text> means we want to print text,
20|10 are x and y positions of the text,
D is the D font of the printer,
N to print the text in horizontal,
30|30 are the heigth and width of the font,
and <hibou_print_zpl_products_price> GBP means we want to print your product price followed by GBP.

 

3/ Set up your barcodes

For the barcode, you must also setup the following variables in order :
– the position (x and y in dots),
– the orientation (N for horizontal, R for vertical, I horizontal inverted, B pour vertical inverted),
– the height (in dots between 1 and 32000),
– the display of barcode numbers (Y for yes or N for no),
– the position of barcode numbers (N if below the code, Y if above the code).

Example:
<hibou_print_zpl_bar_code>20|300|N|10|Y|N
<hibou_print_zpl_bar_code> means we want to print a barcode,
20|300 are x and y positions of the barcode,
N to print the barcode in horizontal,
10|Y|N means the barcode will have 10 dots height, and numbers are displayed below the code.

 

4/ A practical example

You will find below the code for the following label:
label-pos-software

<hibou_print_zpl_start_format>
//Open code of your label layout

<hibou_print_zpl_add_text>20|25|D|N|10|10|<hibou_print_zpl_products_name>
//Print the product name at the top of the label

<hibou_print_zpl_bar_code>20|70|N|80|Y|N
// Print the product barcode

<hibou_print_zpl_add_text>330|50|D|B|16|10|<hibou_print_zpl_products_price>
//Print your product price in vertical after the barcode

<hibou_print_zpl_add_text>360|80|D|B|16|10|EUR
//Print the euro currency in vertical under your product price

<hibou_print_zpl_end_format>
//End code of your label layout

 

5/ Go further : box and strike out a price

The variables for a box (<hibou_print_zpl_add_box>) are :
– the position (x and y in dots)
– the width (in dots between 1 and 32000),
– the height (in dots between 1 and 32000),
– the border thickness (in dots between 1 and 32000),
– the box line color (B for black and W for white)
– and the corner-rounding (between 0 and 8, 0 is no rounding)

Example :
<hibou_print_zpl_add_box>50|100|200|40|4|B|0
to create a black square-corner box with 200 dots width and 40 dots height.

To strike out a price, we will superpose a one-line box over the price. The box height will have the same value as the box border thickness.

Example :
<hibou_print_zpl_add_text>250|70|D|N|16|10|<hibou_print_zpl_products_price> GBP
<hibou_print_zpl_add_box>240|83|150|2|2|B|0

 

As well as for your receipts, you can now setup with ease your labels in Hiboutik free POS software.

the owl has written 40 articles