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

#   Integrate with Membership extension.

##

- **[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")**
- [![Sergey Romanov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile") Topic Author
- [ Offline](/forum/user/5439-sergey-romanov)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 10 months ago [\#137653](#137653) by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")  *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137653 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")* was created by *[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")*

Hello,

We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.

I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.

Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.

And how to access this value later in success purchase event.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

12 years 10 months ago [\#137692](#137692) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137692 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Hi,

The trigger to display additional fields in the product edition page is: Code:

function onProductFormDisplay(&amp; $product, &amp; $html)

The trigger to generate the subscription after a purchase is: Code:

function onAfterOrderUpdate( &amp;$order,&amp;$send_email)

I would recommend to look at our akeeba subscriptions plugins for an example of how to use such triggers since they do exactly the same thing but for Akeeba subscriptions :
[ www.hikashop.com/support/documentation/1...a-subscriptions.html](http://www.hikashop.com/support/documentation/109-akeeba-subscriptions.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")**
- [![Sergey Romanov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile") Topic Author
- [ Offline](/forum/user/5439-sergey-romanov)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 10 months ago [\#137721](#137721) by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")  Replied by *[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137721 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Excellent! Exactly what we need.

onAfterOrderUpdate and onAfterOrderCreate. What is the difference between those?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

12 years 9 months ago [\#137733](#137733) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137733 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

The first one is for when the order information is updated in some way and the second one is for when the order is created at the end of the checkout.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")**
- [![Sergey Romanov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile") Topic Author
- [ Offline](/forum/user/5439-sergey-romanov)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 9 months ago [\#137741](#137741) by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")  Replied by *[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137741 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Then I should use onAfterOrderCreate to assign subscription because it is done only once? Or order may be created in pending mode and later to be updated to confirmed? If yes how do I understand that this update confirms the order and not only update some comment or whatever?

Also what are onCheckSubscription and onCheckSubscritpionPlugin methods are for?

Here is what i want to do. And you tell me if I am on a good track.

1. During subscription plan creation I can select Hikashop products and associate this plan with those product(s).
2. On success product purchase I query all plans that are associated with this product or each product of the order and assign associated subscription plan.

That is it.

What do you think?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

12 years 9 months ago [\#137745](#137745) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137745 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

I invite you to look at how it's done in the akeeba subscriptions. You can see there that the plugin only adds the subscription if the order_status is present and set to confirmed and that it is being changed from a different order status.

You're on a good track yes. As I said, it's exactly what the akeeba subscriptions plugin does.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")**
- [![Sergey Romanov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile") Topic Author
- [ Offline](/forum/user/5439-sergey-romanov)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 9 months ago -  12 years 9 months ago [\#137775](#137775) by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")  Replied by *[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137775 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Thank you Nicolas,

Looks like I have managed to create an integration. Now Emerald Joomla membership is integrated. users can purchase products with Hikashop cart and get subscriptions.

Thank you for your excellent assistance!

Release link
[ ](http://www.mintjoomla.com/downloads/item/34-actions/326-action-hikashop.html)[ www.mintjoomla.com/downloads/item/34-act...action-hikashop.html](http://www.mintjoomla.com/downloads/item/34-actions/326-action-hikashop.html)

Last edit: 12 years 9 months ago by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

12 years 9 months ago [\#137848](#137848) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137848 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Hi,

That's great ! I've added a link to it in our integrations area and tweeted about it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")**
- [![Sergey Romanov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile") Topic Author
- [ Offline](/forum/user/5439-sergey-romanov)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 9 months ago -  12 years 9 months ago [\#137851](#137851) by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")  Replied by *[Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137851 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Excellent!

This is weird but I cannot find integration area on your site ![:)](/media/kunena/emoticons/8.png ":)")

Also added release news
[ ](http://www.mintjoomla.com/blog/item/327-update-emerald-v-9-128-stable.html)[ www.mintjoomla.com/blog/item/327-update-...-v-9-128-stable.html](http://www.mintjoomla.com/blog/item/327-update-emerald-v-9-128-stable.html)

Last edit: 12 years 9 months ago by [Sergey Romanov](/forum/user/5439-sergey-romanov "View Sergey Romanov's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

12 years 9 months ago [\#137863](#137863) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#137863 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

You can see it in the documentation page: [ www.hikashop.com/support.html#hk4](http://www.hikashop.com/support.html#hk4)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 1
- Thank you received: 0
-
-

11 years 10 months ago [\#181143](#181143) by [mcauley](/forum/user/35112-mcauley "View mcauley's Profile")  Replied by *[mcauley](/forum/user/35112-mcauley "View mcauley's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#181143 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Hi Nicolas,

I've been working with Sergey to integrate his extension with our payment platform and create a landing page for his product on our carts page; I'd like to discuss the same for you and your product.

Can I setup time to talk with you?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUzNi1pbnRlZ3JhdGUtd2l0aC1tZW1iZXJzaGlwLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

11 years 10 months ago [\#181221](#181221) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integrate with Membership extension.](/forum/31-development/864536-integrate-with-membership-extension#181221 "Hello,  We want to integrate Emerald with Hikashop. Emerald is Joomla membership extension. The idea is to associate hikashop products with subscription plans. And when product is purchased, assign subscription for user.  I have found developer documentation with is detailed enough. I know what event to use after success purchase to assign associated subscription.  Right now I have only one question. What event to use to add subscription plans selector into product form so that during product add/edit seller could indicate what subscription to give after success product purchase.  And how to access this value later in success purchase event.")*

Hi,

Yes, please use our contact to reach me and plan that:
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

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

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.262 seconds

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

[](#top)
