[Skip to main content](#vessel-content)

#   How to check serial data of specific pack via URL

##

- **[romaster](/forum/user/32963-romaster "View romaster's Profile")**
- [![romaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32963-romaster "View romaster's Profile") Topic Author
- [ Offline](/forum/user/32963-romaster)

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#174424](#174424) by [romaster](/forum/user/32963-romaster "View romaster's Profile")  *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174424 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")* was created by *[romaster](/forum/user/32963-romaster "View romaster's Profile")*

-- HikaShop version -- : 2.3.3
-- HikaSerial version -- : 1.8.3
-- Joomla version -- : 3.3.6

HI,
in this [ tutorial](http://www.hikashop.com/support/documentation/integrated-documentation/28-hikaserial/tutorials/138-hikaserial-consume.html) says that I can check serial data via URL.
But this url Code:

index.php?option=com_hikaserial&amp;ctrl=serial&amp;task=check&amp;hikaserial[serial]=YOUR_SERIAL_DATA&amp;hikaserial[format]=xml

will checking for all pack on my site.
How I can check serial data of specific pack only (via URL)?
I need something like Code:

index.php?option=com_hikaserial&amp;ctrl=serial&amp;task=check&amp;hikaserial[serial]=YOUR_SERIAL_DATA&amp;hikaserial[pack_name]=YOUR_PACK_NAME&amp;hikaserial[format]=xml

(this code for example and not working for me)
Regards,
Roman

Last edit: 12 years 3 weeks ago by [romaster](/forum/user/32963-romaster "View romaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#174431](#174431) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174431 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,

Yes, the system will check on all "available" packs.
But if the other packs does not allow the "web service", the system won't check in that packs.
There is no current feature to add such filter in the web service system but I can add it in the TODO list for a future release.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[romaster](/forum/user/32963-romaster "View romaster's Profile")**
- [![romaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32963-romaster "View romaster's Profile") Topic Author
- [ Offline](/forum/user/32963-romaster)

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#174544](#174544) by [romaster](/forum/user/32963-romaster "View romaster's Profile")  Replied by *[romaster](/forum/user/32963-romaster "View romaster's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174544 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,

> But if the other packs does not allow the "web service", the system won't check in that packs.

But if I want to use 2 pack with different price I can't do it with URL and web service...
Unfortunately it's a bad option for me ![:(](/media/kunena/emoticons/5.png ":(")

> I can add it in the TODO list for a future release

Yes, thanks, that would be wonderful
About my question - I found temporary solution:
it's override file Code:

/components/com_hikaserial/views/serial/tmpl/check_xml.php

in this file just add pack_id in xml Code:

&lt;serial status="&lt;?php echo $serial-&gt;serial_status; ?&gt;" date="&lt;?php echo $serial-&gt;serial_assign_date;?&gt;" pack="&lt;?php echo $serial-&gt;serial_pack_id ;?&gt;"&gt;

But I have one small question:
How I can display pack name instead serial_pack_id ?
In other words, how get pack "name" by pack "id"?

Last edit: 12 years 3 weeks ago by [romaster](/forum/user/32963-romaster "View romaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#174547](#174547) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174547 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,

You can load the pack in your view Code:

$packClass = hikaserial::get('class.pack'); $pack = $packClass-&gt;get( (int)$serial-&gt;serial_pack_id ); echo $pack-&gt;pack_name;

I will see to return the pack content with the serial content in the view, so it will be easier to display some pack data.

Regards,

---

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

The following user(s) said Thank You: [romaster](/forum/user/32963-romaster "View romaster's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[romaster](/forum/user/32963-romaster "View romaster's Profile")**
- [![romaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32963-romaster "View romaster's Profile") Topic Author
- [ Offline](/forum/user/32963-romaster)

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 3 weeks ago [\#174564](#174564) by [romaster](/forum/user/32963-romaster "View romaster's Profile")  Replied by *[romaster](/forum/user/32963-romaster "View romaster's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174564 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,

> You can load the pack in your view

Thanks, this working fine ![:)](/media/kunena/emoticons/8.png ":)")

> so it will be easier to display some pack data

Please clarify, if I understood correctly do you mean that you will modify file check_xml.php instead of modifying URL?
Please note: URL request gives the answer to the question: serial of specific pack is valid or not. XML answer with pack data needs to be analyzed. For example, if 2 serials in different packs have the same serial data, which serial will be shown in xml(see attachment)? If both, How I need to parse and check it? I think, it greatly complicates the development of custom consumer plugin...
Regards,
[ ![hikaserial.jpg](/forum/attachment/19984) ](/forum/attachment/19984 "hikaserial.jpg")

- [ ![hikaserial.jpg](/forum/attachment/19984) ](/forum/attachment/19984 "hikaserial.jpg") [ ](/forum/attachment/19984?download=1 "hikaserial.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#174567](#174567) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174567 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,

I just said that the view can also provide the pack data with the serial data.
Nothing less, nothing more !

When you try to consume a serial, the serial have to be unique.
There is no filter when you have a "consume" module or a consume page.

For the web service part, I agree with you that having a filter for the search is better. Having a web service access.
If you just consume serials using QRcode, we can imagine having a filter like the web services ; but in some specific cases (consuming from the front-end, no user assignation...) it won't be possible to the user to add an extra filter for the pack so it won't be possible.

But your screenshot is outside of the HikaSerial's prerogative: You have two identical serials in the same pack.
At this moment you can't use any web service or consuming.
The classical generator checks that the generate serials are unique ; so this kind of data is not possible unless you generate manually the data.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[romaster](/forum/user/32963-romaster "View romaster's Profile")**
- [![romaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32963-romaster "View romaster's Profile") Topic Author
- [ Offline](/forum/user/32963-romaster)

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 2 weeks ago [\#174645](#174645) by [romaster](/forum/user/32963-romaster "View romaster's Profile")  Replied by *[romaster](/forum/user/32963-romaster "View romaster's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174645 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,
Ok, thanks for clarification.
Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 2 weeks ago [\#174656](#174656) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to check serial data of specific pack via URL](/forum/17-serial-how-to/872112-how-to-check-serial-data-of-specific-pack-via-url#174656 "-- HikaShop version -- : 2.3.3 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 3.3.6  HI, in this says that I can check serial data via URL. But this url  will checking for all pack on my site. How I can check serial data of specific pack only (via URL)? I need something like  (this code for example and not working for me) Regards, Roman")*

Hi,

Just to precise that the "filter" parameter for the check and consume function are in the TODO list for HikaSerial 1.8.4

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODcyMTEyLWhvdy10by1jaGVjay1zZXJpYWwtZGF0YS1vZi1zcGVjaWZpYy1wYWNrLXZpYS11cmw/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.266 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
