Skip Navigation

[Resolved] Creating a view that shows customers subscriptions per user IDs.

This thread is resolved. Here is a description of the problem and solution.

Problem:

I would like to also add another query/view onto this that shows per user, which woocommerce subscriptions and which woocomerce memberships that user ID is tied to.

Solution:

In Toolset side, you can:

- Use shortcode [wpv-user field="ID"] to get current logged-in user's ID,

- Use shortcode [wpv-post-author format="meta" meta="ID"] to get current post author's ID

You can check it with plugin authors of "WooCommerce Membership" and "WooCommerce Subscriptions", check if there is any shortcode within their plugins, which supports passing user's ID, and display customer's Membership and Subscriptions information.

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-user

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154504

This support ticket is created 3 years, 6 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by larryB-3 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1807667

I created a couple of views in order to show a listing of all Users . For each user, I show basic user data and what CPT of Listings they are the author of.

Now I would like to also add another query/view onto this that shows per user, which woocommerce subscriptions and which woocomerce memberships that user ID is tied to.

#1808065

Hello,

I assume we are talking about those two plugins:
- WooCommerce Membership
- WooCommerce Subscriptions

There isn't such kind of built-in feature within Toolset plugins.

In Toolset side, you can:
- Use shortcode [wpv-user field="ID"] to get current logged-in user's ID,
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-user
- Use shortcode [wpv-post-author format="meta" meta="ID"] to get current post author's ID
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154504

You can check it with plugin authors of "WooCommerce Membership" and "WooCommerce Subscriptions", check if there is any shortcode within their plugins, which supports passing user's ID, and display customer's Membership and Subscriptions information.

#1808595

Thank you for the information.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.