{"id":9524,"date":"2018-01-18T08:49:26","date_gmt":"2018-01-18T08:49:26","guid":{"rendered":"https:\/\/kb.sambapos.com\/?p=9524"},"modified":"2018-04-10T12:13:45","modified_gmt":"2018-04-10T12:13:45","slug":"2-2-8-how-to-change-edit-basic-printer-templates","status":"publish","type":"post","link":"https:\/\/kb.sambapos.com\/en\/2-2-8-how-to-change-edit-basic-printer-templates\/","title":{"rendered":"2.2.8.How to Change\/Edit Basic Printer Templates?"},"content":{"rendered":"<h2 id=\"yazici_sablonlari_genel_ozellikleri\" class=\"sectionedit1\"><span style=\"color: #de3838;\">Printer Templates General Features<\/span><\/h2>\n<div class=\"level1\">\n<p><strong>Manage &gt; Settings &gt; Printer Templates\u00a0<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9537 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-01-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-01-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-01-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-01-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-01-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>[LAYOUTS] <\/strong>\u00a0is basic field in printer template which general layout plan is configured. Inside, there are basic ticket information. Check out the screenshot above;<\/p>\n<p>{ENTITIES} is a section in Layouts field. In this row\u00a0<strong>[ENTITIES:Table]\u00a0<\/strong>\u00a0and\u00a0<strong>[ENTITIES:Customer]<\/strong>\u00a0titles are marked by blue arrows. It shows which data will be written under these titles.<\/p>\n<p><span class=\"wrap_hi \" style=\"color: #0000ff;\">{ENTITIES}<\/span><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p><strong> [ENTITIES:Table]<\/strong><br \/>\n&#8211;Table Entity Format<br \/>\n&lt;L00&gt;Table: {ENTITY NAME}<\/p>\n<p><strong>[ENTITIES:Customer]<\/strong><br \/>\n&#8211;Customer Entity Format.<br \/>\n&lt;j00&gt;Customer: {ENTITY NAME} | {ENTITY DATA:Phone}<br \/>\n&lt;L00&gt;Address: {ENTITY DATA:Address}<\/p>\n<p>In the same way;\u00a0{ORDERS} field shows the place where orders will be written. In this example Orders show how to write data fields\u00a0( from above to below )\u00a0\u00a0<strong>[ORDERS]<\/strong>,\u00a0<strong>[ORDERS:Gift]<\/strong>,\u00a0<strong>[ORDERS:Void]<\/strong>,\u00a0<strong>[ORDER TAGS]<\/strong><\/p>\n<div class=\"level1\">\n<p><span style=\"color: #0000ff;\">{ORDERS}<br \/>\n<\/span>&#8211;Write the products according to the format which edited under the tag titles.<\/p>\n<\/div>\n<p><strong> [ORDERS]<\/strong><br \/>\n&#8212; Default Template view for Orders.<br \/>\n&lt;J00&gt;- {QUANTITY} {NAME} |{TOTAL PRICE}<br \/>\n{ORDER TAGS}<\/p>\n<p><strong>[ORDERS:Gift]<\/strong><br \/>\n&#8212; Format for gifted orders<br \/>\n&lt;J00&gt;- {QUANTITY} {NAME}|**GIFT**<br \/>\n{ORDER TAGS}<\/p>\n<p><strong>[ORDERS:Void]<\/strong><br \/>\n&#8212; Nothing will print for void lines<\/p>\n<p><strong>[ORDER TAGS]<\/strong><br \/>\n&#8212; Format for order tags<\/p>\n<div class=\"level1\">\n<p>By using default template like above we get a such output.<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9541 \" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-02-1.jpg\" alt=\"\" width=\"640\" height=\"664\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-02-1.jpg 752w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-02-1-289x300.jpg 289w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><code>[LAYOUT]<\/code><br \/>\n<code> -- General layout<\/code><br \/>\n<code> &lt;T&gt;Ticket<\/code><br \/>\n<code> &lt;L00&gt;Date:{TICKET DATE}<\/code><br \/>\n<code> &lt;L00&gt;Time:{TIME}<\/code><br \/>\n<code> {ENTITIES}<\/code><br \/>\n<code> &lt;L00&gt;Ticket No:{TICKET NO}<\/code><br \/>\n<code> &lt;F&gt;-<\/code><br \/>\n<code> {ORDERS}<\/code><br \/>\n<code> &lt;F&gt;=<\/code><br \/>\n<code> &lt;EB&gt;<\/code><br \/>\n<code> {DISCOUNTS}<\/code><br \/>\n<code> [&lt;J10&gt;Total Gifts:|{ORDER STATE TOTAL:Gifts}]<\/code><br \/>\n<code> {SERVICES}<\/code><br \/>\n<code> &lt;J10&gt;Total:|{TICKET TOTAL}<\/code><br \/>\n<code> {PAYMENTS}<\/code><br \/>\n<code> &lt;DB&gt;<\/code><br \/>\n<code> &lt;F&gt;=<\/code><br \/>\n<code> &lt;C10&gt;T H A N K Y O U<\/code><\/p>\n<p><code>[DISCOUNTS]<\/code><br \/>\n<code> &lt;J00&gt;{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}<\/code><\/p>\n<p><code>[SERVICES]<\/code><br \/>\n<code> &lt;J00&gt;{CALCULATION NAME}|{CALCULATION TOTAL}<\/code><\/p>\n<p><code>[PAYMENTS]<\/code><br \/>\n<code> &lt;J00&gt;{PAYMENT NAME}|{PAYMENT AMOUNT}<\/code><\/p>\n<p><code>[ORDERS]<\/code><br \/>\n<code> -- Default format for orders<\/code><br \/>\n<code> &lt;J00&gt;- {QUANTITY} {NAME}|{TOTAL PRICE}<\/code><br \/>\n<code> {ORDER TAGS}<\/code><\/p>\n<p><code>[ORDERS:Gift]<\/code><br \/>\n<code> -- Format for gifted orders<\/code><br \/>\n<code> &lt;J00&gt;- {QUANTITY} {NAME}|**GIFT**<\/code><br \/>\n<code> {ORDER TAGS}<\/code><\/p>\n<p><code>[ORDERS:Void]<\/code><br \/>\n<code> -- Nothing will print for void lines<\/code><\/p>\n<p><code>[ORDER TAGS]<\/code><br \/>\n<code> -- Format for order tags<\/code><br \/>\n<code> &lt;J00&gt; * {ORDER TAG NAME} | {ORDER TAG PRICE}<\/code><\/p>\n<p><code>[ENTITIES:Table]<\/code><br \/>\n<code> -- Table entity format<\/code><br \/>\n<code> &lt;L00&gt;Table: {ENTITY NAME}<\/code><\/p>\n<p><code>[ENTITIES:Customer]<\/code><br \/>\n<code> -- Customer entity format<\/code><br \/>\n<code> &lt;J00&gt;Customer: {ENTITY NAME} | {ENTITY DATA:Phone}<\/code><\/p>\n<p>General Sections that can be found in a sample Template;<\/p>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">{ENTITIES}\u00a0 \u00a0 \u00a0 \u00a0Entity List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{ORDERS}\u00a0 \u00a0 \u00a0 \u00a0 \u00a0Order List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{ORDER TAGS}Order Tag List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{TAXES}\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Taxes List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{DISCOUNTS}\u00a0 Discount List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{SERVICES}\u00a0 \u00a0 \u00a0 Service List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{PAYMENTS}\u00a0 \u00a0Payment List<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">{CHANGES}\u00a0 \u00a0 \u00a0 Change Payment List<\/div>\n<\/li>\n<\/ul>\n<p>All the values which can be found in each section above, are given on the right column in the template screens.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9531 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-03-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-03-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-03-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-03-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/01\/2-2-8-How-to-Change-Edit-Basic-Printer-Templates-03.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u2013 Nothing will print for void lines, like this rows are information rows, they start with double ( &#8211; ) sign and they will be ignored in the output. When you designing the template it&#8217;s used for information that you want to remember later on. Your printers ignore these rows.<\/p>\n<p>In front of values between &lt;&gt; symbols\u00a0 are used for definiton of format for that row&#8217;s sentence. For example\u00a0 &lt;L00&gt;\u00a0 means print as Left aligned, font height:0, font width:0 After the symbol first digit indicates height of font and second digit indicates width of font.<\/p>\n<p>Below there are other tags that can be used:<\/p>\n<table class=\"inline\">\n<thead>\n<tr class=\"row0\">\n<th class=\"col0\">Tag<\/th>\n<th class=\"col1\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row1\">\n<td class=\"col0\">&lt;T&gt;<\/td>\n<td class=\"col1\">Title; Allows you to write title Left and Right with period.<\/td>\n<\/tr>\n<tr class=\"row2\">\n<td class=\"col0\">&lt;F&gt;<\/td>\n<td class=\"col1\">Full ; Allows you to write the\u00a0character after itself during the whole row . For example when you write &lt;F&gt; * it writes until end of row. Usually it is used for drawing &#8211;<\/td>\n<\/tr>\n<tr class=\"row3\">\n<td class=\"col0\">&lt;L&gt;<\/td>\n<td class=\"col1\">Left; Allows you to write that row as Left aligned.<\/td>\n<\/tr>\n<tr class=\"row4\">\n<td class=\"col0\">&lt;R&gt;<\/td>\n<td class=\"col1\">Right; Allows you to write that row as Right aligned.<\/td>\n<\/tr>\n<tr class=\"row5\">\n<td class=\"col0\">&lt;C&gt;<\/td>\n<td class=\"col1\">Center; Allows you to write that row as centric.<\/td>\n<\/tr>\n<tr class=\"row6\">\n<td class=\"col0\">&lt;J&gt;<\/td>\n<td class=\"col1\">Justify; Fits the sentence into the row.<\/td>\n<\/tr>\n<tr class=\"row7\">\n<td class=\"col0\">&lt;W&gt;<\/td>\n<td class=\"col1\">Wait; Allows you to make waiting between sending data especially on HUGIN Fiscal Printer. Each &lt;W&gt; makes wait 10 milliseconds. If you write as &lt;W&gt;&lt;W&gt;&lt;W&gt; then it gives 30 milliseconds waiting.<\/td>\n<\/tr>\n<tr class=\"row8\">\n<td class=\"col0\">&lt;BEEP&gt;<\/td>\n<td class=\"col1\">Usually added at the end of Ticket Template. If printer has\u00a0audible alarm feature, when printing finished, it warns with audio.<\/td>\n<\/tr>\n<tr class=\"row9\">\n<td class=\"col0\">&lt;BMP&gt;<\/td>\n<td class=\"col1\">By giving together with path of\u00a0Bmp extension picture file allows you to add to the printing Example;&lt;BMP&gt;c:\\Logo.bmp<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Printer Templates General Features Manage &gt; Settings &gt; Printer Templates\u00a0 [LAYOUTS] \u00a0is basic field in printer template which general layout plan is configured. Inside, there are basic ticket information. Check out the screenshot above; {ENTITIES} is a section in Layouts field. In this row\u00a0[ENTITIES:Table]\u00a0\u00a0and\u00a0[ENTITIES:Customer]\u00a0titles are marked by blue arrows. It shows which data will be [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,14],"tags":[],"class_list":["post-9524","post","type-post","status-publish","format-standard","hentry","category-installation","category-2-2-sambapos-basic-setup"],"_links":{"self":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/9524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/comments?post=9524"}],"version-history":[{"count":10,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/9524\/revisions"}],"predecessor-version":[{"id":13684,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/9524\/revisions\/13684"}],"wp:attachment":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/media?parent=9524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/categories?post=9524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/tags?post=9524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}