Add Wi-fi Password to Printed ticket based on certain condition

Yes, you can.

First, you may want to take a look at the following…

Based on that Tutorial, in your Ticket Template, you would place this Tag: {SETTING:WiFiPW}.

If that’s a little bit more complex than you need, you can still just Store the Password in SambaPOS without actually changing the Router Password. You could also hard-code the Password in one of the Templates, instead of using Program Setting {SETTING:WiFiPW}.

Printing based on a Constraint would require further Rules. You could go about it this way:

  • Clone your Ticket Template: name them appropriately, i.e. Print Bill with WiFi and Print Bill without WiFi. In 1 put in the Tag {SETTING:WiFiPW}, and in the other, remove the Tag {SETTING:WiFiPW}.
  • Clone your Print Bill Print Job: name them appropriately, i.e. Print Bill with WiFi and Print Bill without WiFi. Edit the Print Jobs to use the appropriate Template.
  • Clone your Execute Print Bill Action: name them appropriately, i.e. Execute Print Bill with WiFi and Execute Print Bill without WiFi. Adjust the Print Jobs in the Actions to use the correct Print Job.
  • Clone the Rule which contains the Print Bill Action: name them appropriately, i.e. Print Bill with WiFi and Print Bill without WiFi. Assign the proper Print Job Action to each of the Rules.
  • Add a Constraint to each of the Rules which are opposite from one another: in 1 Rule add Constraint for [=TN('{TICKET TOTAL}')] Greater 99 and in the other add Constraint for [=TN('{TICKET TOTAL}')] Less 100.

Maybe I’ll append the above setup with screenshots to the WiFi Tutorial later today…

2 Likes