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

#   User Points - HikaSerial Consumer plugin

##

- **[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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

11 years 8 months ago [\#194047](#194047) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194047 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Hi,

To perform a login you have to use Joomla, because it's related to Joomla.

But I think that the best will for you will be to have an option to target the serial user instead of the logged user.
So I added a new option in the plugin for the next HikaSerial release.
The idea is to check the new setting during "onBeforeSerialConsume" and to load the user link to the serial during "onAfterSerialConsume", then depending the new setting, we pass the logged user or the linked user to the function "givePoints".

Regards,

---

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

The following user(s) said Thank You: [Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 8 months ago [\#194231](#194231) by [Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")  Replied by *[Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194231 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Jerome, When do you expect to have the next release of HikaSerial?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODc1MzQyLXVzZXItcG9pbnRzLWhpa2FzZXJpYWwtY29uc3VtZXItcGx1Z2luP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

11 years 8 months ago [\#194288](#194288) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194288 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Hi,

It is planned for this week.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODc1MzQyLXVzZXItcG9pbnRzLWhpa2FzZXJpYWwtY29uc3VtZXItcGx1Z2luP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

11 years 7 months ago [\#194707](#194707) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194707 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Hi,

The release is done.

Regards,

---

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

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 7 months ago [\#194865](#194865) by [Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")  Replied by *[Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194865 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Hi Jerome,

I have downloaded HikaShop 2.4.0 and HikaSerial 1.9.1 .

When I tried to check or consume a serial without being logged in to the website, I received the following error:
{"error":"404","error_text":"no serial"}

When I am logged in, the response is as expected.

Did I forget to do something?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODc1MzQyLXVzZXItcG9pbnRzLWhpa2FzZXJpYWwtY29uc3VtZXItcGx1Z2luP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

11 years 7 months ago [\#194871](#194871) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194871 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Hi,

It will depend on your HikaSerial configuration and the consume plugin you're using.
It is possible to refuse the "guest consuming" like it is possible to restriction the consumption for some specific user groups.

Regards,

---

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

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 7 months ago [\#194925](#194925) by [Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")  Replied by *[Rajaft](/forum/user/36280-rajaft "View Rajaft's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194925 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Please find the attached files with the serial configuration, the generator, the consumer and the pack.

I am still receiving the same error:
{"error":"404","error_text":"no serial"}

Awaiting your answer.

Regards

- [ ![&#95;Consumer.png](/forum/attachment/23130) ](/forum/attachment/23130 "&#95;Consumer.png") [ ](/forum/attachment/23130?download=1 "&#95;Consumer.png")
- [ ![&#95;Generator.png](/forum/attachment/23131) ](/forum/attachment/23131 "&#95;Generator.png") [ ](/forum/attachment/23131?download=1 "&#95;Generator.png")
- [ ![&#95;Pack.png](/forum/attachment/23132) ](/forum/attachment/23132 "&#95;Pack.png") [ ](/forum/attachment/23132?download=1 "&#95;Pack.png")
- [ ![&#95;SerialConfig.png](/forum/attachment/23133) ](/forum/attachment/23133 "&#95;SerialConfig.png") [ ](/forum/attachment/23133?download=1 "&#95;SerialConfig.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODc1MzQyLXVzZXItcG9pbnRzLWhpa2FzZXJpYWwtY29uc3VtZXItcGx1Z2luP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

11 years 7 months ago [\#194963](#194963) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[User Points - HikaSerial Consumer plugin](/forum/17-serial-how-to/875342-user-points-hikaserial-consumer-plugin?start=20#194963 "-- HikaSerial version -- : 1.9.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.19  I have created a product, a User Points - HikaSerial generator, a serial pack and a User Points - HikaSerial Consumer plugin.  When I login to the front end and buy a product, a serial is generated like expected with the specified number of points in the Serial Extra Data of the serial.  When I try to consume the serial using: http://localhost/joomla/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;serial&#95;data&#93;=YOUR&#95;SERIAL&amp;hikaserial&#91;serial&#95;extra&#95;data&#93;&#91;myUser&#93;=YOUR&#95;USERNAME&amp;hikaserial&#91;format&#93;=json  The status of the serial changed to USED but the number of points on the serial does not change.  What am I doing wrong?")*

Hi,

You have the option "consume will check/assign user".
The first part of the option is to check if the user who consume is the same that the user who is assigned (in the case there is one).
The second part of the option is to assign if the serial is not already assigned.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODc1MzQyLXVzZXItcG9pbnRzLWhpa2FzZXJpYWwtY29uc3VtZXItcGx1Z2luP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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.067 seconds

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