Skip Navigation

[Resolved] Assign User Role When subscribing with woocommerce

This support ticket is created 6 years, 3 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1110350

Tell us what you are trying to do? I want to assign one woo product to a user role and another product to a different user role.
This is to assist me with limiting access to one of my content forms after purchase.

Is there any documentation that you are following? No

Is there a similar example that we can see? No

What is the link to your site? hidden link

#1110641

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andy,

I'm not sure what you mean by assign a product to a user? Is it that you want to make a user the author of the product ?

Please let me know.

Thanks,
Shane

#1110662

Not quite, I want to assign a product to a user role.
So product 1 is assigned to subscriber and product 2 is assigned to contributor or similar...
you get the idea?

#1110764

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andy,

Thank you for the explanation. This one isn't actually possible to do unless there is custom coding involved. This is because of how permissions work, so you wouldn't be able to assign a product to a user role.

I did a bit of searching on the wordpress plugin database and found this.
https://wordpress.org/plugins/product-visibility-by-user-role-for-woocommerce/#description

This seems like it could be of some assistance so you can try it and see if it helps. Alternatively I would recommend contacting one of our registered contractors for further assistance.
https://toolset.com/contractors/

Thanks
Shane