cancel from within a module

  • Rob Smith
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #132271 by Rob Smith
cancel from within a module was created by Rob Smith
Hello,
I created a menu of type 'User Profile'.
I set 'Show my subscriptions tab' to 'Yes' and all other options to 'No'

I then include this component into a page using the ''Components Anywhere' plugin ( extensions.joomla.org/extension/components-anywhere/ ).

It works fine, except that the cancel button for recurring subscriptions doesn't work.
When I click on 'Cancel Subscription', the browser pops up the question 'Are you sure want to cancel the recurring subscription ?'. But then when I click 'OK', the url in the address bar changes to <previous url>+'??task=register.process_cancel_subscription'
ie it has 2 question marks followed by the string above. Also, the subscription is not cancelled.

Is it possible to somehow include the subscriptions tab on another page, with the ability for users to cancel their subscription ?

Thanks

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

More
5 years 6 months ago #132273 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cancel from within a module
Hi Rob

The solution is not using Components Anywhere , just use our View module to display the page in a module

Then check it again. If it still does not work, we can check it further. See membershipprodoc.joomservices.com/advanc...splay-view-in-module for detailed instructions, setup it and let us know if you need more help

Tuan

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

  • Rob Smith
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #132275 by Rob Smith
Replied by Rob Smith on topic cancel from within a module
Thanks for your advice. This worked, though it is displaying the 'Edit Profile' and 'Subscriptions History' tabs which we did not want to display. But I will hide them with javascript.
Thankyou.

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

More
5 years 6 months ago #132276 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cancel from within a module
You do not have to hide it using javascript. You just need to:

- Create a hidden menu item link to user profile menu option of Membership Pro, choose the right settings to hide the tabs you don't want
- Then check the module you created again. In Query String parameter, append Itemid=ID_OF_MENU_ITEM above

Then check it again. It should work OK (the module will use the settings from hidden menu item)

If it does not work, maybe you should download latest package of Membership Pro, update to your site and it will work (I remember I fixed a bug related that option sometime ago)

Tuan

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

  • Rob Smith
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #132277 by Rob Smith
Replied by Rob Smith on topic cancel from within a module
Hi,
I put 'Itemid=423' (without the quotes) in the 'Query String' field of the module .
This is the ID of a hidden menu item of type 'Membership Pro » User Profile', which has the options that I require.
But it is not changing the output of the module.
Is there anything else that I need to do ?

I have Membership Pro version 2.19.0 - the most recent version.

Thanks,
Alice

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

More
5 years 6 months ago #132278 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cancel from within a module
As I said, I fixed a bug related to that option recently. So please access to My Downloads menu item, download latest package, upgrade it to your site, then the issue should be sorted

Tuan

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

  • Rob Smith
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #132279 by Rob Smith
Replied by Rob Smith on topic cancel from within a module
Yes, that worked.
Thankyou

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

More
5 years 6 months ago #132280 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic cancel from within a module
Great. Thanks for confirming

Regards,

Tuan

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