Problem: Is it possible to limit a View's results to a certain distance based on the current User's role, established by purchasing a site registration package?
Solution: You can create 3 different Views with the different distance filters applied. You can use a shortcode attribute to set the distance center point, based on the User's profile address information. When a User buys a specific package, you can adjust his or her User role with Forms Commerce. Then based on the User's role, you can display one of those 3 Views with conditionals.
Relevant Documentation:
https://toolset.com/documentation-category/cred-commerce/
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 2 replies, has 2 voices.
Last updated by 5 years, 3 months ago.
Assisted by: Christian Cox.