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

#   How can we create one time usable serial?

##

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 3 weeks ago [\#129425](#129425) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129425 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")* was created by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")*

I have two queries regarding hikaserial-

a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.

b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?

Thanks,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODYzMTAxLWhvdy1jYW4td2UtY3JlYXRlLW9uZS10aW1lLXVzYWJsZS1zZXJpYWw/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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#129427](#129427) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129427 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")*

Hi,

a) Yes, it is already the case but it is not "visible" as it.
You can use the serial several times to put the product in the cart but only one product can be validate in the order.
- If the serial is used, you can't even add a product thanks to the code.
- If the serial is used when the order want to be created, the creation is cancelled.
- If there is not enough serials than the products in the order, the creation is cancelled too.
Just after the order creation, the serial is set as used.
Hope it will help you to understand how it works.

b) There is no plugin for that. I really don't think how implement such thing as a generic feature.
It is something very specific so it need specific development.

Regards,

---

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 3 weeks ago [\#129428](#129428) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129428 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")*

Thanks for the reply.
You said- "Just after the order creation, the serial is set as used."
I consider the same that once order is created that serial status will be changed to "Used".I have set "No user assign" to yes.so once user uses the serial "serial_user_id" changes to current user id but status remains "Assigned".I thought it should also change to "Used".Do I need to change any setting?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODYzMTAxLWhvdy1jYW4td2UtY3JlYXRlLW9uZS10aW1lLXVzYWJsZS1zZXJpYWw/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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#129499](#129499) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129499 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")*

Hi,

For the product-add, there are two plugins.
The first is the "HikaSerial Product Add plugin", that you can find in the HikaSerial plugin listing.
The other is "HikaSerial Product Add - HikaShop Check plugin" that you can find in the HikaShop plugin listing (tab "plugins" in the HikaShop configuration).

The second plugin allow HikaSerial to check the order before the creation and put the serial as "used".

You need both plugins to have a complete working system.

Regards,

---

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

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 weeks ago -  13 years 2 weeks ago [\#129660](#129660) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129660 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")*

I also have something to ask -

1)I need to know how can I edit serial mail.As I mentioned above instead of sending it to order user I have to send it to other email id.I found onBeforeSerialMailSend. Can I use this function? If yes,then how.or any other suggestion?

2)After order creation cart does not get empty for Entry registration.I have got the same in demo site.I tested Entry registration form and after order creation cart does not get empty.Is this intentional or how can I change this?

Thanks,

Last edit: 13 years 2 weeks ago by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODYzMTAxLWhvdy1jYW4td2UtY3JlYXRlLW9uZS10aW1lLXVzYWJsZS1zZXJpYWw/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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 2 weeks ago [\#129685](#129685) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129685 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")*

Hi,

1) To edit the HikaSerial part for the email, you can simply create a view override.
In the backend, "HikaSerial &gt; Views" will list you the HikaSerial views that you can override.
Please edit :
"frontend &#124; your_frontend_template &#124; orderserial &#124; show_email_notification_html"
**and**
"backend &#124; your_backend_template &#124; orderserial &#124; show_email_notification_html"

2) Please create a post in the HikaShop section for this problem.

Regards,

---

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 weeks ago [\#129797](#129797) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[How can we create one time usable serial?](/forum/17-serial-how-to/863101-how-can-we-create-one-time-usable-serial#129797 "I have two queries regarding hikaserial-  a)I am using Product-add consumer plugin.What I need is user can use serial only once so that he can only add free product once.It might be possible that I am missing some setting.Please let me know if this is possible without changing the code.  b)Is this also possible to send serials to someone else's email id? What I am trying to do is this- I am using entry form where User can enter email ids and can purchase product.Once order is completed serials will be generated and these serials will be emailed to users whose email ids were collected from entry form.How can I achieve this or what kind of plugin I can use for this?  Thanks,")*

Thanks for your help,

1)I thought there should be an event to change email id but I have got a way to do this.
2)I have created another post for this.

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

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