- Posts: 82
- Thank you received: 5
url error
- designer71
-
Topic Author
- Offline
Less
More
3 weeks 2 days ago #100000644
by designer71
url error was created by designer71
-- HikaShop version -- : 6.8.2
-- Joomla version -- : 6.2
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome 157.0
-- Error-message(debug-mod must be tuned on) -- : no
Hello HikaShop Support Team,
I am configuring a gift certificate system using HikaSerial: 6.1.1
Our goal
We sell gift certificates through HikaShop. Each certificate is automatically generated by HikaSerial and includes a unique serial number, an expiration date, and a QR code.
We would like our clinic administrator to scan the QR code, open the HikaSerial redemption page with the serial number automatically passed to it, and confirm redemption without manually entering the code.
Only authorized administrators (Super Users) should be allowed to redeem certificates.
What is working
When we generate a QR code containing a redemption URL with HikaSerial parameters, Joomla converts the URL into an incorrect SEF format.
For example, we tried:
However, the QR code contains a URL similar to:
The serial number is lost and replaced with
.
We also tried URL-encoding the square brackets (
and
), but the result was the same.
Using a simple parameter such as
preserves the serial number in the SEF URL, but does not successfully pass it to the redemption handler.
When opening the generated link, HikaSerial displays a confirmation page. However, after submitting, it returns to the "Enter your serial code" form instead of redeeming the certificate.
We also temporarily disabled Joomla SEF routing for testing. The HikaSerial confirmation page opened, but we have not established whether the serial number was correctly processed in that configuration. SEF has now been re-enabled.
Our questions
Thank you for your assistance.
Best regards,
Boris
-- Joomla version -- : 6.2
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome 157.0
-- Error-message(debug-mod must be tuned on) -- : no
Hello HikaShop Support Team,
I am configuring a gift certificate system using HikaSerial: 6.1.1
Our goal
We sell gift certificates through HikaShop. Each certificate is automatically generated by HikaSerial and includes a unique serial number, an expiration date, and a QR code.
We would like our clinic administrator to scan the QR code, open the HikaSerial redemption page with the serial number automatically passed to it, and confirm redemption without manually entering the code.
Only authorized administrators (Super Users) should be allowed to redeem certificates.
What is working
- Gift certificates are generated correctly using the AttachSerial plugin.
- Unique serial numbers and expiration dates are generated correctly.
- QR codes are generated successfully.
- Manual redemption through the HikaSerial frontend form works perfectly.
- After manual redemption, the serial status changes from Assigned to Used.
- The Group Filter Consumer plugin is configured for Super Users only.
When we generate a QR code containing a redemption URL with HikaSerial parameters, Joomla converts the URL into an incorrect SEF format.
For example, we tried:
Code:
https://taletsky.com/index.php?option=com_hikaserial&ctrl=serial&task=consume&hikaserial[data]={serial.serial_data}&confirmation=1&hikaserial[format]=html
Code:
https://taletsky.com/component/hikaserial/serial/consume/hikaserial-Array/confirmation-1
Code:
Array
We also tried URL-encoding the square brackets (
Code:
%5B
Code:
%5D
Using a simple parameter such as
Code:
data={serial.serial_data}
When opening the generated link, HikaSerial displays a confirmation page. However, after submitting, it returns to the "Enter your serial code" form instead of redeeming the certificate.
We also temporarily disabled Joomla SEF routing for testing. The HikaSerial confirmation page opened, but we have not established whether the serial number was correctly processed in that configuration. SEF has now been re-enabled.
Our questions
- What is the correct URL format for QR-code-based certificate redemption in HikaSerial 6.1.1 with Joomla 6?
- How can we prevent the
parameter from being converted intoCode:hikaserial[data]?Code:hikaserial-Array
- Is there a recommended way to generate a redemption URL directly through AttachSerial while keeping Joomla SEF enabled?
- Can we configure QR-code redemption so that only Super Users can confirm and consume certificates?
- Is there a built-in solution that does not require modifying HikaSerial or Joomla PHP files?
Thank you for your assistance.
Best regards,
Boris
Please Log in or Create an account to join the conversation.
- designer71
-
Topic Author
- Offline
Less
More
- Posts: 82
- Thank you received: 5
3 weeks 1 day ago #100000658
by designer71
Replied by designer71 on topic url error
I asked to write this question by AI, my English is small.
thank you!
thank you!
Please Log in or Create an account to join the conversation.
3 weeks 1 day ago #100000661
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Hello,
Thank you for your feedback and sorry for the delay.
Instead of giving you a patch to apply to your website, I choose to work on a new release since we had some other improvements to publish.
So you can download and install HikaSerial 6.2.0 which contains the fix for the router, so the URL can be correctly SEF.
Kind regards,
Thank you for your feedback and sorry for the delay.
Instead of giving you a patch to apply to your website, I choose to work on a new release since we had some other improvements to publish.
So you can download and install HikaSerial 6.2.0 which contains the fix for the router, so the URL can be correctly SEF.
Kind regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: sudkarting
Please Log in or Create an account to join the conversation.
3 weeks 1 day ago #100000667
by nicolas
Hi,
The address you put in the QR code is the right one (it is the one of our e-ticket tutorial: www.hikashop.com/support/documentation/2...ickets-tutorial.html ). The problem comes from a bug in the HikaSerial router combined with the "Strict Routing" option of Joomla's "System - SEF" plugin, which is enabled by default on Joomla 6: when the phone opens the non-SEF address, Joomla redirects it to its SEF version, and the HikaSerial router wrote the hikaserial[data] parameter as "hikaserial-Array", so the serial was lost. The QR code itself is fine; the change happens when the address is opened.
We have fixed the router so that these parameters stay in the address; the fix comes with the next version of HikaSerial. Until then, without modifying any file: in Joomla, go to System > Manage > Plugins, open "System - SEF" and set "Strict Routing" to No. You can keep SEF URLs enabled. We reproduced it on Joomla 6.2 with HikaSerial 6.1.1, and with this option off the confirmation page receives the serial.
For the QR code in AttachSerial, keep the address exactly as you had it, without encoding the brackets:
taletsky.com/index.php?option=com_hikase...k=consume&hikaserial [data]={serial.serial_data}&confirmation=1&hikaserial[format]=html
You can add &tmpl=component at the end to show only the confirmation, without your site's header and menus, which is easier to read on a phone.
The other variants cannot work: the confirmation page only reads the serial from hikaserial[data], so data={serial.serial_data} gives an empty confirmation, which is why you came back to the "Enter your serial code" form.
In the pack of your gift certificates (HikaSerial > Packs), these options must be set: "Consumer pack" to Yes, "Webservice access" to Yes (the hikaserial[format]=html parameter of this address goes through it; without it the consume is refused with "Serial invalid"), and "Consume will check/assign user" to No.
To limit the redemption to Super Users: in HikaSerial > Plugins, the "Group filter consumer" entry must have your gift certificate pack selected and the group "Super Users". Please also check in System > Manage > Plugins that the Joomla plugin "Group filter consumer" (type hikaserial) is enabled: on our test site it was disabled after the installation, and in that case the filter is not applied and anyone opening the address could consume the certificate. With it enabled, a visitor who is not logged in gets "Serial invalid" and the certificate stays Assigned.
The administrator has to be logged in on the frontend of the site, in the browser of the phone used to scan (checking "Remember me" avoids logging in again each time). Then scanning the QR code opens the confirmation page with the serial, and after the confirmation the certificate goes to Used.
The address you put in the QR code is the right one (it is the one of our e-ticket tutorial: www.hikashop.com/support/documentation/2...ickets-tutorial.html ). The problem comes from a bug in the HikaSerial router combined with the "Strict Routing" option of Joomla's "System - SEF" plugin, which is enabled by default on Joomla 6: when the phone opens the non-SEF address, Joomla redirects it to its SEF version, and the HikaSerial router wrote the hikaserial[data] parameter as "hikaserial-Array", so the serial was lost. The QR code itself is fine; the change happens when the address is opened.
We have fixed the router so that these parameters stay in the address; the fix comes with the next version of HikaSerial. Until then, without modifying any file: in Joomla, go to System > Manage > Plugins, open "System - SEF" and set "Strict Routing" to No. You can keep SEF URLs enabled. We reproduced it on Joomla 6.2 with HikaSerial 6.1.1, and with this option off the confirmation page receives the serial.
For the QR code in AttachSerial, keep the address exactly as you had it, without encoding the brackets:
taletsky.com/index.php?option=com_hikase...k=consume&hikaserial [data]={serial.serial_data}&confirmation=1&hikaserial[format]=html
You can add &tmpl=component at the end to show only the confirmation, without your site's header and menus, which is easier to read on a phone.
The other variants cannot work: the confirmation page only reads the serial from hikaserial[data], so data={serial.serial_data} gives an empty confirmation, which is why you came back to the "Enter your serial code" form.
In the pack of your gift certificates (HikaSerial > Packs), these options must be set: "Consumer pack" to Yes, "Webservice access" to Yes (the hikaserial[format]=html parameter of this address goes through it; without it the consume is refused with "Serial invalid"), and "Consume will check/assign user" to No.
To limit the redemption to Super Users: in HikaSerial > Plugins, the "Group filter consumer" entry must have your gift certificate pack selected and the group "Super Users". Please also check in System > Manage > Plugins that the Joomla plugin "Group filter consumer" (type hikaserial) is enabled: on our test site it was disabled after the installation, and in that case the filter is not applied and anyone opening the address could consume the certificate. With it enabled, a visitor who is not logged in gets "Serial invalid" and the certificate stays Assigned.
The administrator has to be logged in on the frontend of the site, in the browser of the phone used to scan (checking "Remember me" avoids logging in again each time). Then scanning the QR code opens the confirmation page with the serial, and after the confirmation the certificate goes to Used.
The following user(s) said Thank You: designer71
Please Log in or Create an account to join the conversation.
- designer71
-
Topic Author
- Offline
Less
More
- Posts: 82
- Thank you received: 5
3 weeks 1 day ago #100000676
by designer71
Replied by designer71 on topic url error
Thank you!
It very help me.
It very help me.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.104 seconds