SCRIPT

  • jam jam
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago - 8 years 4 months ago #101047 by jam jam
SCRIPT was created by jam jam
Hello
i have 2 component (my custom component+membership pro) , and in my custum component i can create plan (name+description) .

What i would like to do :

when i create plan (name+description) in my custum component It creates automatically plan in membership pro .
If i edit plan description in my costum component they automatically update description plan of membership pro.


If someone could help me

thanks
Last edit: 8 years 4 months ago by jam jam.

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

More
8 years 4 months ago #101056 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic SCRIPT
Hi

Unfortunately, there is no way to do that at the moment. I think in you component, you will need to edit code so that when your plan is created, you can insert data into #__osmembership_plans table of Membership Pro

That's the table store subscription plan data. In your plans table, I guess you need to create a new field like membership_pro_plan_id to store the mapping between your plan and Membership Pro plan to handle the update

Regards,

Tuan

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