Trouble generating dynamic QR-code URL for subscription validation

  • Posts: 587
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
4 days 21 hours ago #366382

-- 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:







Kind regards,
Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 26215
  • Thank you received: 4033
  • MODERATOR
3 days 23 hours ago #366402

Hello,

The documentation screenshot are coming from old version of Joomla but the interface (and how to configure the plugin) has not changed.

CF : www.hikashop.com/support/documentation/1...ns-attachserial.html

Dynamic Text... - Display a dynamic text, the elements between brackets will be replace. Like "{order_product.product_id}" to display the product id from the table order_product.

So, you need to use these brackets instead of the percentage mark :
https://vergunningen.svbdelfland.nl/validatie.php?serial={serial.serial_data}

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 3 days 23 hours ago by Jerome. Reason: code tag instead of quote

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.080 seconds
Powered by Kunena Forum