How can we create one time usable serial?

  • Posts: 64
  • Thank you received: 0
10 years 6 months ago #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,

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

  • Posts: 26034
  • Thank you received: 4006
  • MODERATOR
10 years 6 months ago #129427

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 & 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.

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

  • Posts: 64
  • Thank you received: 0
10 years 6 months ago #129428

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 or Create an account to join the conversation.

  • Posts: 26034
  • Thank you received: 4006
  • MODERATOR
10 years 6 months ago #129499

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 & 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.
The following user(s) said Thank You: irfanhanfi

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

  • Posts: 64
  • Thank you received: 0
10 years 6 months ago #129660

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: 10 years 6 months ago by irfanhanfi.

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

  • Posts: 26034
  • Thank you received: 4006
  • MODERATOR
10 years 6 months ago #129685

Hi,

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

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

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.

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

  • Posts: 64
  • Thank you received: 0
10 years 6 months ago #129797

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 or Create an account to join the conversation.

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