How to restrict access to a page/post based on product purchased and specific variation of that product.
For example, page A may only be accessed by someone that purchased product A and variation A1
Hi there,
That is not possible with Toolset built-in features. You need custom development for that.
What you need is to use the "wc_get_orders" WooCommerce to be able to get the list of the orders:
hidden link
Then you need to loop through the orders that have the Producst A with Variation B and extract the users that have have that kind of order.
Now that you have the user list you need to assign a custom role to those users. The custom role is what you have created already in Toolset Access.
Then you can restrict the pages using that custom role.
The process needs extensive knowledge of the WooCommerce Hook API and PHP WordPress development.
You are welcome to hire a developer to do that:
https://toolset.com/contractors/
Thanks.