Membership Card - Remove option to download card for Subscriber

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 4 months ago #154963 by David Unwin
In the past we have allowed our members to download their own membership cards.
We now want to stop this so that only admins can do this.
So I have set the option in Member Card Settings - Show Download Member Card For Admin to YES
What I can't see is how to turn off the Subscriber to being able to to download their own card

 
I can't see any option in General or Member Card Settings.
Am I missing something??

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

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 4 months ago #155245 by David Unwin
Anyone have any opinion on this issue?

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

More
1 year 4 months ago #155246 by Tuan Pham Ngoc
Hello David

We do not have option to prevent subscribers to download member card (the feature is designed to allow them to download member card, so it is a bit strange to me that you want to disable it)

So if you want that, you will need to customize code. The file is components/com_osmembership/view/profile/tmpl/default_subscriptions.php

(Just add $this->showDownloadMemberCard = false; at the top of file would help)

Once the modification is done, you need to move that modified file to PATH_TO_TEMPLATE/html/com_osmembership/profile folder so that the change won't be lost when you update to future release of the extension. PATH_TO_TEMPLATE is path to the template which you are using on your site

Regards,

Tuan
The following user(s) said Thank You: David Unwin

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

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 4 months ago #155258 by David Unwin
Thanks Tuan,
That works perfectly.!!!!
 

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

More
1 year 4 months ago #155259 by Tuan Pham Ngoc
Great. Remember to move the modified file to template override as mentioned so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan
The following user(s) said Thank You: David Unwin

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