Hello,
I’m using the Wix Pricing Plans module to sell webinars. I’ve created multiple webinar plans in Pricing Plans, and I need my “Webinars (List)” page to automatically display only the webinars that the logged‑in user has purchased via Pricing Plans.
What I’ve tried so far:
On the frontend, I show either a “Buy” or “Watch” button based on whether the user has any active subscriptions.
I check user purchases via orders.listOrders({ buyerId })
from wix-pricing-plans-backend
.
Currently the page still lists all webinars, or shows incorrect order data. I want the list to be dynamically narrowed so that each user sees only those webinar items they have actually purchased.
Expected behavior:
- A logged‑in user visits the Webinars List page.
- The site queries Pricing Plans orders for their
buyerId
. - The Webinars List displays only those collection items (webinars) whose
pricingPlanId
matches one of the user’s purchased plans.
Questions:
- Is there a built‑in parameter or Velo API method to filter App Collections by Pricing Plans purchases?
- What is the correct way to link the Pricing Plans v2 modules (
plans
,orders
) with my Webinars collection so that filtering happens automatically? - Could you share a sample code snippet or detailed Velo instructions for this scenario?
Thank you for your help!