I am having an issue getting a dynamic field to populate a parameter inside a tag. From what I have read it is because of parsing order.
Specifically I am try to force a subscription via DevDemon Subscriptions plugin to start the bill cycle on a specific day of the next month. There is a parameter called "next_billing_date" which will force this, but since it is a parameter, I would have to change this manually every month, I cant seem to use javascript or php or other methods to calculate this date.
things I have tried:
- embedded templates and javascript using moment.js or php like datediff to calculate the difference and output a new date, which works to get the date, but when embedded it only spits out the code and doesnt parse the script/php and fails.
- {next_date format="%Y-%m-01"} -This actually works but will only work on the 1st day of the month (i.e. if someone subscribed on 2016-04-12 it will put out 2016-05-01, great, but if I wanted to renew on the 15th of the month using {next_date format="%Y-%m-15"} and someone subscribed on 2016-04-12 it would output 2016-05-15, meaning they would miss the next billing period.
Any ideas?