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

#   Generate serial from email address?

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 1 week ago -  12 years 1 week ago [\#180008](#180008) by [Stenzel](/forum/user/35010-stenzel "View Stenzel's Profile")  *[Generate serial from email address?](/forum/15-general-talk-about-hikaserial/873070-generate-serial-from-email-address#180008 "-- 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")* was created by *[Stenzel](/forum/user/35010-stenzel "View Stenzel's Profile")*

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

Last edit: 12 years 1 week ago by [Stenzel](/forum/user/35010-stenzel "View Stenzel's Profile"). Reason: typo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MzA3MC1nZW5lcmF0ZS1zZXJpYWwtZnJvbS1lbWFpbC1hZGRyZXNzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 week ago [\#180019](#180019) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Generate serial from email address?](/forum/15-general-talk-about-hikaserial/873070-generate-serial-from-email-address#180019 "-- 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")*

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-&gt;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-&gt;get( $order-&gt;order_user_id ); $user-&gt;user_email;

[ www.hikashop.com/support/documentation/1...er.html#fct\_generate](http://www.hikashop.com/support/documentation/125-hikaserial-developer.html#fct_generate)

Regards,

---

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

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

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