Limiting number of purchases

Hi all,

I’m using Webflow (no Membership nor Ecommerce functionality) + Memberstack to sell online courses. I want to limit the number of purchases per course (in order to limit the participants). Memberstack has no native functionality of this. Is there a way to do this in Webflow (e.g. track/count number of successful purchases and depending on a participant-limit change a switch in the course-CMS to de-publish the course)?


if you use ecommerce yes, there is the inventory level, so basically it will just turn out to out-of-stock state