-- HikaShop version -- : 5.1.5
-- HikaSerial version -- : 5.0.0
-- Joomla version -- : 5.2.5
-- PHP version -- : 8.3.18
-- Browser(s) name and version -- : Chrome
Dear HikaShop,
We’ve been working on setting up a digital fishing license system using HikaSerial with subscriptions, but we’ve run into a problem we can’t quite solve.
Here’s what we want to achieve:
We want customers to purchase a fishing license (vispas) via HikaShop in combination with HikaSerial and Subscriptions. The license should be a digital document (either a PDF or an image) that includes:
• The customer’s name and address
• A QR code that can be scanned by an inspector
When the QR code is scanned, it should link to a validation page. That page then shows the customer’s name, address, and whether the license (subscription) is currently valid. The license validity is stored in the HikaSerial subscription.
So far, we’ve successfully managed to generate both the PDF and image versions, complete with customer data and QR code — so that part works well.
The issue now is:
We can’t generate the correct dynamic URL in the QR code that links to our validation page. The validation script itself works fine — when we manually fill in the subscription_data field, the validation page displays all the information.
Here is an example of the kind of URL we want to generate dynamically in the QR code:
vergunningen.svbdelfland.nl/validatie.php?serial=VP-100000001
As you click on the link you will see the validation.php page is sort of working. We have to improve that, but that’s not the problem this moment.
So our goal is to include a QR code in the PDF that links to a validation page containing the serial number, like:
https://vergunningen.svbdelfland.nl/validatie.php?serial=VP-100000123
We’ve tried adding a “Dynamic text” element with QRCode format and inserting:
https://vergunningen.svbdelfland.nl/validatie.php?serial=%serial%
and
https://vergunningen.svbdelfland.nl/validatie.php?serial=[serial.serial_data]
But the variables are not replaced — the QR code shows them as literal text or encoded (%25serial%25).
Perhaps our current setup is completely off, but could you please let us know how to correctly set this up in version 5.0.0?
Unfortunately, the documentation seems a bit outdated in relation to the new 5.0.0 version. It would be really helpful if that could be reviewed.
For example, the HikaSerial e-ticket tutorial is very useful, but currently a bit out of date.
Thank you very much!
Attached some screenshots: