- Posts: 55
- Thank you received: 2
Custom serial number based on information in order
13 years 5 months ago #97805
by ohall
Custom serial number based on information in order was created by ohall
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
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.
13 years 5 months ago #97807
by Jerome
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.
Replied by Jerome on topic Custom serial number based on information in order
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,
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.
13 years 5 months ago #97867
by ohall
Replied by ohall on topic Custom serial number based on information in order
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
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.
13 years 5 months ago - 13 years 5 months ago #97879
by Jerome
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.
Replied by Jerome on topic Custom serial number based on information in order
Hi,
The "item" would create a new "line" for each different product, item custom field value included.
So, it would be like that:
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:
Regards,
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: 13 years 5 months ago by Jerome.
The following user(s) said Thank You: ohall
Please Log in or Create an account to join the conversation.
13 years 5 months ago #97908
by ohall
Replied by ohall on topic Custom serial number based on information in order
Perfect - thanks Jerome
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.188 seconds