Custom serial number based on information in order

  • Posts: 51
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
11 years 1 month ago #97805

Hi There,

Apologies in advance if this is a stupid question.

We are looking to use HikaShop Starter to sell a software tool and would like to produce a serial (licence) key at time of order completion, basing the key on certain information provided by the purchaser. I understand that we can write a custom serial generator, but can we have HikaShop ask the purchaser to fill in a field, if the product requires it?

Specifically, the key would be generated based upon the product id, a variant selection, and a piece of information entered by the purchaser (another "magic number" that we will give them). For products that don't require a licence, the user shouldn't need to (or be asked to) fill in the "magic number". Ideally, a licence key would then be emailed to them on payment confirmation.

Is this possible with HikaShop Starter and HikaShop Serial?

Many thanks,
Oliver

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

  • Posts: 26034
  • Thank you received: 4006
  • MODERATOR
11 years 1 month ago #97807

Hi,

No need to apology !

HikaSerial would provide the features to generate the serials and attach them to the user and the order after completion (validation).
If you want to retrieve some information provided by the customer during the purchase, you have to use some "custom fields" which are provided by commercial versions of HikaShop (the business edition for "order" and "items" custom fields).

Order custom fields are information asked to the user during the checkout. The data is for the entire order.
Item custom fields are information asked to the user when a product is added to the cart. The data is attach to the "order product".

Best 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: 51
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
11 years 1 month ago #97867

Thanks Jerome,

I think "item" fields are what we want then!

Not essential, but is it also possible to restrict the number of items purchased _per order line_ to one, yet still allow multiple purchases of the same item?

i.e. something like...
OrderLine:1 Item:MySoftware Qty:1 MagicNumber:1234
OrderLine:2 Item:MySoftware Qty:1 MagicNumber:5678

Or would HikaShop consolidate this to
OrderLine:1 Item:MySoftware Qty:2 MagicNumber:5678

Thanks again,
Oliver

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

  • Posts: 26034
  • Thank you received: 4006
  • MODERATOR
11 years 1 month ago #97879

Hi,

The "item" would create a new "line" for each different product, item custom field value included.
So, it would be like that:

OrderLine:1 Item:MySoftware Qty:1 MagicNumber:1234
OrderLine:2 Item:MySoftware Qty:1 MagicNumber:5678


If the user change the quantity of a product (in this cart or when adding the product to the cart), you could have something like:

OrderLine:1 Item:MySoftware Qty:1 MagicNumber:1234
OrderLine:2 Item:MySoftware Qty:2 MagicNumber:5678


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.
Last edit: 11 years 1 month ago by Jerome.
The following user(s) said Thank You: ohall

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

  • Posts: 51
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
11 years 1 month ago #97908

Perfect - thanks Jerome

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

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