Hi, I've to set up a Membership site with recurring payments. My idea is to working with woocommerce-subscriptions and woocommerce-memberships. They give me all the features I need for the membership, but they are using private custom post types, so I cannot check the subscription with views. For example, I cannot filter a view of posts based on subscription level. Should I use roles? I know I can use woocommerce-memberships shortcodes
Can you help me to understand what is the correct way to work with woocommerce-subscriptions, woocommerce-memberships and Toolset?
Hi,
Thank you for contacting us and I'd be happy to assist.
Your observation about user roles is correct. As there is no deeper plugin level integration available between Toolset and WooCommerce Subscriptions & Memberships, the most natural way to make these work together would be through the user roles.
WooCommerce Subscriptions & Memberships can automatically change user roles based on subscription/membership status. You can use these user roles in Toolset conditional blocks, to show or hide the content, as needed.
For getting the current user's role in conditional display evaluations, you can either use Toolset's shortcode "wpv-user" ( https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-user ) or the ones provided by WooCommerce Memberships (if any).
regards,
Waqar
My issue is resolved now. Thank you!