Variable on the fly QR code

593 views
Skip to first unread message

qsl.st...@gmail.com

unread,
Dec 6, 2016, 2:55:52 PM12/6/16
to XMPie Interest Group
Hello, I am wanting to build an online business card template that allows the customer to have a custom QR code when they type their info in.
Is there a way to set this up on Ustore to "ping" the internet to create, or is there a built in QR code function in Ustore?

Thanks!

Matt.

couch

unread,
Dec 6, 2016, 9:06:14 PM12/6/16
to XMPie Interest Group
When you are building the business card in InDesign using uCreate Print - use the XMPBarcode() function to put the qr code into the design.

NOTE: the values that you collect from the customer via customization dials that you want to put into the barcode MUST be variables so you can put the variable into the barcode as well as into the print/text of the card. There is a video in campus that explains why you need to use a variable.

Simon Knott

unread,
Dec 7, 2016, 4:31:26 AM12/7/16
to XMPie Interest Group
Hi I have set this up quite succesfully in my store and it basically populates from the users details that are entered on the customisation process.

I can give you a bit of code to help you get started see below but as Couch rightly said you will need to ensure all dials are variables to collect the info input from the user.

XMPBarcode("QRCode", "BEGIN:VCARD\nVERSION:2.1\nN:" & @{NAME} & "\n" & "FN:\n" & "ORG:" & "\n" & "TITLE:" & @{JOB TITLE} & "\n" & "ADR:;" & @{ADDRESSES} & "\n" & "TEL;WORK:" & @{TELEPHONE} & "\n" & "TEL;CELL:" & @{MOBILE} & "\n" & "EMAIL:" & @{EMAIL} & "\n" & "URL:" & @{URL} & "\n" & "END:VCARD\n")

qsl.st...@gmail.com

unread,
Dec 7, 2016, 11:37:21 AM12/7/16
to XMPie Interest Group
Thank You so much for your responses, I came in to find out that Don Gulcher had seen this post and emailed me the Qlingo code.
I put together a test file and put it on a test site and it works beautiful!

One other question, Are these QR codes produced as black only when the final print file is sent to the digital machine?
(I was going to test it, but I figured if one of you already knew the answer I would ask)

Thanks!





Simon Knott

unread,
Dec 7, 2016, 12:25:39 PM12/7/16
to XMPie Interest Group
One of our customers requires a blue QR code so all you need to do is add the following CMYK parameter at the end inside the original XMPBarcode("QRCode","...","Color=cmyk(100%,80%,30%,5%)")

couch

unread,
Dec 7, 2016, 7:24:24 PM12/7/16
to XMPie Interest Group
Also, I heard during the XUG conference that spot color support (including transparency) in barcodes is coming soon. 
This is one of the big advantages of attending the conference - the chance to talk with the actual programmers and product managers :)

cda...@tucsoncps.com

unread,
Dec 7, 2016, 11:45:40 PM12/7/16
to XMPie Interest Group
Would you be willing to share the Qlingo code that Don Gulcher shared with you?

qsl.st...@gmail.com

unread,
Jan 19, 2017, 11:15:40 AM1/19/17
to XMPie Interest Group
Sorry it took so long, I've been crazy busy!
Here's the Qlingo code, obviously you will need to edit to fit your needs.



XMPBarcode("QRCode", "BEGIN:VCARD\nVERSION:4.0\nFN:" & @{FirstName} & " " & @{LastName} & "\n" & "TITLE:" & @{Title} & "\n" & "ADR;WORK:;;" & @{Address} & ";" & @{City} & ";" & @{State} & ";" & @{Zip} & "\n" & "TEL;CELL;VOICE:" & @{Mobile} & "\n" & "EMAIL;INTERNET;PREF:" & @{Email} & "\n" & "URL:www.pressocup.com" & "\n" & "END:VCARD")
Reply all
Reply to author
Forward
0 new messages