- Posts: 3
- Thank you received: 0
Generate serial from email address?
12 years 1 week ago - 12 years 1 week ago #180008
by Stenzel
Generate serial from email address? was created by Stenzel
-- HikaShop version -- : 2.3.4
-- HikaSerial version -- : 1.8.5
-- Joomla version -- : 3.3.6
I need to port an existing shop to hikashop, and for this I need to generate a license key based on the customer's email address. Is this possible?
Thanks,
Stefan
-- HikaSerial version -- : 1.8.5
-- Joomla version -- : 3.3.6
I need to port an existing shop to hikashop, and for this I need to generate a license key based on the customer's email address. Is this possible?
Thanks,
Stefan
Last edit: 12 years 1 week ago by Stenzel. Reason: typo
Please Log in or Create an account to join the conversation.
12 years 1 week ago #180019
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Generate serial from email address?
Hi,
The "generate" function of the HikaSerial generator plugins have in his parameters the order object.
Thanks to the order object, you can have the "$order->order_user_id", so you can access to the user email by loading the HikaShop user.
www.hikashop.com/support/documentation/1...er.html#fct_generate
Regards,
The "generate" function of the HikaSerial generator plugins have in his parameters the order object.
Thanks to the order object, you can have the "$order->order_user_id", so you can access to the user email by loading the HikaShop user.
Code:
$userClass = hikaserial::get('shop.class.user');
$user = $userClass->get( $order->order_user_id );
$user->user_email;
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.041 seconds