Mmebership pro Plan Module Customization

  • Leon Jackson
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #88005 by Leon Jackson
Mmebership pro Plan Module Customization was created by Leon Jackson
Hi,
I recently added the membership pro plan module, all the details are displaying but recommended text is not visible. There is no option to enter the "recommended id" in module. How can I add this as I really don't have a clue on getting the recommended id text.

Thanks

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

More
8 years 11 months ago #88041 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mmebership pro Plan Module Customization
Hi Leon

You create a menu item or use Membership Pro view module to display the plans ? If you use Membership Pro view module, you will need to edit code

Open the file components/com_osmembership/view/common/tmpl/pricingtable_plans.php, find this line of code;
Code:
$recommendedPlanId = (int) JFactory::getApplication()->getParams()->get('recommended_campaign_id');

Change it to
Code:
$recommendedPlanId = 4;

(Of course you need to change 4 to ID of the plan you want)

After that, it will work as expected

Tuan
The following user(s) said Thank You: Leon Jackson

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

  • Leon Jackson
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #88059 by Leon Jackson
Replied by Leon Jackson on topic Mmebership pro Plan Module Customization
Thanks Tuan, I was using the Membership plan module. But anyway this worked. :)

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

More
8 years 11 months ago #88065 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mmebership pro Plan Module Customization
Great :). Remember to use template override so that the change won't be lost when you update to future releases of the extension :)

Tuan
The following user(s) said Thank You: Leon Jackson

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