Skip Navigation

[Resolved] Hiding content from certain users

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1167124

Hi there,

Many thanks for taking the time to look at my support request. I really do hope you can help.

I am using various Toolset plugins (including Access) to limit access to a page of content on my site.

The site also uses WooCommerce and the official WooCommerce Subscription extension, so that people can become Members of the site.

There are two types of Member: Full Member (€60) and Associate Member (€45).

There is a page called "Member Documentation" which has documents which only logged-in Members can view. Associate Members should not be able to view them

I have done this successfully using the following shortcodes in the Page editor:

[toolset_access role="Subscriber,Customer" operator="deny"]
   You can't see this as you're not a Member
[/toolset_access]

[toolset_access role="Customer" operator="allow"]
   Your application for Membership has been approved by the AFEPI board. To view the Member documents you must first complete your Membership payment by visiting this link.
[/toolset_access]

[toolset_access role="Subscriber" operator="allow"]
   Member documents here.
[/toolset_access]

This all works fine, so that non-Members see the first section above, registered users (who are not yet Members) see the second section, and Members see the last section.

HOWEVER: When anyone signs up to a subscription - for either of the Member options - they are assigned the Subscriber user role. So I cannot find the way to distinguish between the products they have bought with your Access plugin to limit access to only Members who have subscribed to the Full Membership, but not those who have subscribed to Associate Membership.

Please can you help me with this issue?

Many thanks again for your time.

very best wishes, Andrew.

#1167543

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - the trick is you should have configured different role for each member type so this will make your life easy.

We have membership tutorial available, I think you may take a look here, how you can configure different roles:
=> https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/#add-custom-role

Additionally, we also offer Docs that explains how you can use WooCommerce Subscription extension with Toolset
=> https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/how-to-use-the-woocommerce-subscriptions-plugin-with-toolset/

Does that make any difference?

Note: Please note that Toolset Access can not support multiple roles per user.

#1167544

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - the trick is you should have configured different role for each member type so this will make your life easy.

We have membership tutorial available, I think you may take a look here, how you can configure different roles:
=> https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/#add-custom-role

Additionally, we also offer Docs that explains how you can use WooCommerce Subscription extension with Toolset
=> https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/how-to-use-the-woocommerce-subscriptions-plugin-with-toolset/

Does that make any difference?

Note: Please note that Toolset Access can not support multiple roles per user.