Please Log in to join the conversation.
Sure, you could use a cronjob for instance to publish. Better to simple enable/disable new registrations as users who paid and you simply unpublish would lose their paid access. You could also use professional subscriber incubator project CB Queries to perform a database query at various CB triggers to check the date and enable Plan XYZ based on that date as well. Example query as follows.But is there an 'automatic' way to manage/configure the publication of these plans or is there maybe another implementation way?
UPDATE `#__cbsubs_plans` SET `allow_newsubscriptions` = 1 WHERE `id` = PLAN_ID AND `allow_newsubscriptions` = 0 AND MONTH( NOW() ) = MONTH_INTEGER
UPDATE `#__cbsubs_plans` SET `allow_newsubscriptions` = 0 WHERE `id` = PLAN_ID AND `allow_newsubscriptions` = 1 AND MONTH( NOW() ) = MONTH_INTEGER
Please Log in to join the conversation.
Please Log in to join the conversation.
Sorry, no I don't. I've never written cron scripts, but simply just know it's possible.Do you have also an example of the cronjob syntax I can use?
Please Log in to join the conversation.