Help with Gloriafood Kitchen Printer Template

A little background:
Looking to start using SambaIn to auto add tickets in Sambapos when a Gloriafood order is accepted - however if I have Gloriafood set to print the “Kitchen Essentials” then it duplicates the ticket in Sambapos (not in SambaIn that still shows the 1 ticket as it should).
As soon as I remove the Kitchen Essentials print job within Gloriafood admin panel from the printer details the duplicate tickets stop being created.
As a workaround I am setting up a new HTML kitchen print template for Samba to use when a new Gloriafood order comes in.

Now the question:
I have got pretty much everything i need except the syntax to print the following on the kitchen printer template:
LATER / ASAP
Order Number - gloriafood’s not sambas

I am assuming they are sent to samba and saved as a ticket tag if so does anyone know what the tags are?
gloriaex

My template so far…

-- General layout
<div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 225px; font-family:'Helvetica'; font-size:14px; font-weight:normal;line-height: 1.6em;">{TICKET TYPE}</div>
<div style="height: 15px;"> </div>
<div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 225px; font-family:'Helvetica'; font-size:14px; font-weight:normal;line-height: 1.6em;">Collection {LATER OR ASAP} in {TICKET TAG:Pickup Minutes} minutes</div>
<div style="height: 15px;"> </div>
<div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 225px; font-family:'Helvetica'; font-size:14px; font-weight:normal;line-height: 1.6em;">{TICKET TAG:Pickup Time}</div>
<div></br></div>
<div style="font-size:14px;text-align: right;">
<table>
<tr>
<td>Order Details:</td><td></td>
</tr>
<tr>
<td>
<div style="height: 15px;padding:2px;">Order Numer:</div>
<div style="height: 15px;padding:2px;">Accepted At:</div>
<div style="height: 15px;padding:2px;">Printed At:</div>
<div style="height: 15px;padding:2px;">First Name:</div>
<div style="height: 15px;padding:2px;">Last Name:</div>


</td>
<td>
<div style="height: 15px;padding:2px;">{ORDER NUMBERS}</div>
<div style="height: 15px;padding:2px;">{TICKET TIME} {TICKET DATE:dd} {TICKET DATE:MMM}</div>
<div style="height: 15px;padding:2px;">{TIME} {DATE:dd} {DATE:MMM} {DATE:yyyy}</div>
<div style="height: 15px;padding:2px;">{ENTITY DATA:Customers:FirstName}</div>
<div style="height: 15px;padding:2px;">{ENTITY DATA:Customers:LastName}</div>
</td></tr>
</table>
</div>

<div style="height: 10px;font-size:12px;padding:5px;"></div>
<div style="text-align:center; border: 1px black solid;">
<div style="font-size:14px;padding:2px;font-family:'Calibri';">TICKET NOTE:</div>
<div style="padding:2px;font-size:16px;font-family:'Calibri';">{NOTE}</div>
</div>
1 Like

Have you managed to find this out or anyone know the answer to this question?

I could not find the solution so I decided to just print collection time and time until collection instead via ticket tags.

Gloriafood Kitchen Printer Template (header section)

[LAYOUT]
    -- General layout
    <div style="height: 40px;"> </div>
    <div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 100%; font-family:'Helvetica'; font-size:14px; font-weight:normal;line-height: 1.6em;">{TICKET TYPE}</div>
    <div style="height: 12px;"> </div>
    <div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 100%; font-family:'Helvetica'; font-size:14px; font-weight:normal;line-height: 1.6em;">Collection in {TICKET TAG:Pickup Minutes} minutes</div>
    <div style="height: 12px;"> </div>
    <div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 100%; font-family:'Helvetica'; font-size:14px; font-weight:bold;line-height: 1.6em;">Collection time: {TICKET TAG:Pickup Time}</div>
    <div style="height: 12px;"></div>
    <div style="font-size:12px;text-align: right;">
    <table>
    <tr>
    <td>Order Details:</td><td></td>
    </tr>
    <tr>
    <td>
    <div style="height: 15px;padding:2px;">Order Number:</div>
    <div style="height: 15px;padding:2px;">Accepted At:</div>
    <div style="height: 15px;padding:2px;">Printed At:</div>
    <div style="height: 15px;padding:2px;">First Name:</div>
    <div style="height: 15px;padding:2px;">Last Name:</div>

    </td>
    <td>
    <div style="height: 15px;padding:2px;">{ORDER NUMBERS}</div>
    <div style="height: 15px;padding:2px;">{TICKET TIME} {TICKET DATE:dd} {TICKET DATE:MMM} {TICKET DATE:yyyy}</div>
    <div style="height: 15px;padding:2px;">{TIME} {DATE:dd} {DATE:MMM} {DATE:yyyy}</div>
    <div style="height: 15px;padding:2px;">{ENTITY DATA:Customers:FirstName}</div>
    <div style="height: 15px;padding:2px;">{ENTITY DATA:Customers:LastName}</div>
    </td></tr>
    </table>
    </div>
    <div style="text-align:center; border: 1px black solid;">
    <div style="font-size:14px;padding:2px;font-family:'Calibri';">&#8505; TICKET NOTE:</div>
    <div style="font-size:14px;padding:2px;">{NOTE}</div>

Pickup Minutes is created by SambaIn and on ticket closing I have an Update Ticket Tag action with the following values:
TAG NAME: Pickup Time
TAG VALUE: [:Pickup Time]
and a rule with Pickup Time set as
[=FD(ADS('{TICKET DATE:HH:mm}',+{TICKET TAG:Pickup Minutes}*60),'hh:mm tt dd MMM')]

1 Like

Yeah, I saw yours and did something like this as well.
I was just moving my template to HTML. Your template helped a lot!

-- Header Start
	<div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 225px; font-family:'Helvetica'; font-size:14px; font-weight:normal; line-height: 1.6em;">
	{TICKET STATE:Status}
	</div>
	
<div style="height: 15px;"> </div>

	<div style="padding: 5px; text-align: Center; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 225px; font-family:'Helvetica'; font-size:14px; font-weight:normal; line-height: 1.6em;">
	{TICKET TYPE} in {TICKET TAG:Pickup Minutes}{TICKET TAG:Delivery Minutes} minutes
	</div>
	
<div style="height: 15px;"> </div>

<div style="text-align:center; border: 1px black solid;">
	<table>
		<tr>
			<td>
				<div style="padding: 0px; text-align: left; background-color: #000000 black; color: #ffffff; border: 1px black solid; width: 225px; font-family:'Helvetica'; font-size:14px; font-weight:normal;line-height: 1.6em;">
					Address {ENTITY DATA:Customers:Distance} Miles
				</div>
			</td>
		</tr>
		<tr>
			<td>
				<div style="padding: 0px; font-family:'Helvetica'; font-size:12px; font-weight:normal;line-height: 1.6em;">
				{ENTITY DATA:Customers:House Number} {ENTITY DATA:Customers:Address}
				</div>
			</td>
		</tr>
	</table>
</div>

<div style="font-size:10px;text-align: justify;">

	<table>
		<tr>
			<td>
				Order Numer:
				Accepted At:
				Requested At:
				First Name:
				Last Name:
				Phone:
			</td>
			<td>
				<div style="font-size:10px;text-align:right;">
				{ORDER NUMBERS}
				{TICKET DATE} {LAST ORDER TIME}
				by[=Math.floor((TN(FD('{TICKET TIME}','HH')) * 60 + TN(FD('{TICKET TIME}','mm')) + {TICKET TAG:Pickup Minutes}) / 60) + ':' + (TN(FD('{TICKET TIME}','HH')) * 60 + TN(FD('{TICKET TIME}','mm')) + {TICKET TAG:Pickup Minutes}) % 60] [=Math.floor((TN(FD('{TICKET TIME}','HH')) * 60 + TN(FD('{TICKET TIME}','mm')) + {TICKET TAG:Delivery Minutes}) / 60) + ':' + (TN(FD('{TICKET TIME}','HH')) * 60 + TN(FD('{TICKET TIME}','mm')) + {TICKET TAG:Delivery Minutes}) % 60]
				{ENTITY DATA:Customers:FirstName}
				{ENTITY DATA:Customers:LastName}
				</div>
				<div style="font-size:12px;text-align:right;">
				+[=F('{ENTITY DATA:Customers:Phone}','####-###-###')]
				</div>
			</td>
		</tr>
	</table>
</div>

<div style="height: 10px;font-size:12px;padding:5px;"></div>
<div style="text-align:center; border: 1px black solid;">
<div style="font-size:12px;padding:2px;font-family:'Calibri';">TICKET NOTE:</div>
<div style="padding:2px;font-size:12px;font-family:'Calibri';">{NOTE}</div>
</div>
-- Header till here

On another note, I don’t suppose there is any documentation to tell us what data SambIN is polling from Gloriafood?

My database has the google distance script, So phone customers once the postcode is known, it will just calculate a distance and be able to print this onto the tickets,

but with the way how data is polled by SambIn, I can’t figure out what to use to print the distance information from Gloriafood Ticket onto the SambaPOS ticket.

Similarly with the ASAP or Later, and Gloriafood Order Number vs the SambaPOS Ticket Number. Maybe @Jesse can point us to the correct place?

It polls all data. But it doesn’t mean it’s all available to you. If you have requests for it please let me know and I can add it to our tracker.

1 Like

Latitude and Longitude (most of the time) are passed with the order payload. I don’t recall that information being included on the ticket or customer entity. The distance you see on you receipt does not come with the order information.

Maybe what you can do is store the distance you get from the google API as a ticket tag. Then have a check executed on Before Ticket Closing checking if the distance ticket tag is set and if not, update it with the response from the google API.

1 Like