Jacques Posted July 26, 2020 Share Posted July 26, 2020 Hi Larry, I want to offer different subscription plans on my virtual products site (free, basic, standard and premium) that would limit subscribers to a number of views. Should I use the virtual subscription model (Part 2) and adapt it, or use the shopping cart model (Part 3)? Regards. Link to comment Share on other sites More sharing options...
Larry Posted July 27, 2020 Share Posted July 27, 2020 It definitely sounds like the virtual subscription model is the correct choice for you. Link to comment Share on other sites More sharing options...
Jacques Posted July 28, 2020 Author Share Posted July 28, 2020 Thank you for your response Larry. If you could perhaps offer some guidance in terms of how you would approach such a subscription model, it would be much appreciated. Kind regards. Link to comment Share on other sites More sharing options...
Larry Posted July 29, 2020 Share Posted July 29, 2020 So I assume that limiting by number of views means a certain number of views within a specific time from (e.g., 10 per month). I'd start with the standard subscription model, where you store the date and then refresh the date with every successful payment (i.e., add a month). This separates active subscriptions from inactive ones. Then create a way of recording views, maybe in another table. When the user views a page, check how many views they have in the current period (i.e., since their last payment date). If they have none left, print that message. If they have any left, show the content but update the record of views. Link to comment Share on other sites More sharing options...
Jacques Posted July 29, 2020 Author Share Posted July 29, 2020 Hi Larry, Thank you very much for taking the time to explain the implementation details. Hopefully I can get my head around it! Kind regards. Link to comment Share on other sites More sharing options...
Recommended Posts