• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • App Market Developer Platform
This question was closed Jun 14 at 07:57 PM by Raymond Lee for the following reason: The question is answered, right answer was accepted

question

Swati avatar image
Swati asked · May 09 at 08:16 AM

How to print the online order receipt for only one printer(Kitchen specifically)?

How to print the online order receipt for only one printer(Kitchen specifically) even if the merchant has multiple devices
OrdersPrint
Comment
· 1 comment
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Swati avatar image Swati · May 13 at 08:10 AM

@racheladmin @Chanel @zgreathouse @Raymond Lee @Mark Mullan @Jeffrey Blattman

Please advice.

0 · ·

2 Answers

  • Sort by Created Created
  • Sort by Oldest Oldest
  • Sort by Votes Votes
Raymond Lee avatar image
Raymond Lee answered · Jun 05 at 09:49 PM ACCEPTED ANSWER
As mentioned by @Bryanne Vega, you can use the PrinterConnector.getPrinters(Category.ORDER) to get a list of order receipt printers that the merchant has.

Then iterate through the list of printers, checking if it's the right one using either the name, ip, or mac address.

Then pass the printer along with your created print job to the PrintJobsConnector.print(printer, printJob) method to print it for that specific printer.
0 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bryanne Vega avatar image
Bryanne Vega answered · May 15 at 06:20 PM
You're best bet is using the SDK, create your own app that "obtains" the information to be printed & create a print job by obtaining the printers & selecting the correct "Label"/Printer.
It shouldn't be a hassle, but you're welcome for more input on the subject


https://github.com/clover/clover-android-sdk/blob/master/clover-android-sdk-examples/src/main/java/com/clover/android/sdk/examples/PrintTestActivity.java
0 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community

question details

4 People are following this question.

Swati follows this question iamRohit45 follows this question Bryanne Vega follows this question raymond.lee follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

How to send custom text to printer while the app receives notification ? 1 Answer

How to declare order on StaticReceiptPrintJob 0 Answers

Custom receipt printing 1 Answer

Where to add custom line item in android? 0 Answers

Print Web Online Orders Automatically - REST API 3 Answers

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.