Navigation überspringen

[Gelöst] Creating a view that shows customers subscriptions per user IDs.

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 Jahren, 4 Monaten. 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 – 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von larryB-3 vor 4 Jahren, 4 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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.