Plan specific cancellation pages

  • Alex P
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #146185 by Alex P
Plan specific cancellation pages was created by Alex P
Hi Tuan,

We showing questionnaire cancellation form thru added module position to the subscriptioncancel override. But we need to show different questionnaire forms regarding to which plan has been cancelled. So we need plan specific cancellation menu items. 

Something like: 
      /membership/dfs-monthly/cancellation
      /membership/dfs-annual/cancellation

Thanks!

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

  • Alex P
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 4 months ago - 2 years 4 months ago #147877 by Alex P
Replied by Alex P on topic Plan specific cancellation pages
Here is solution. To get plan ID on subscriptioncancel override page: 
Code:
<?php echo $this->rowSubscriber->plan_id; ?>
Then render appropriate module position inside "if" statement, e.g.,
Code:
<?php echo JHtml::_('content.prepare', '{loadposition cancel-subscription_1}'); ?>
 
Last edit: 2 years 4 months ago by Alex P.

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

More
2 years 4 months ago #147878 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Plan specific cancellation pages
Hi Alex

Yes. Your code looks good. Thanks for sharing the solution back to us

Regards,

Tuan

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