unfortunately that doesn’t solve my particular situation as what I’m after is granting a particular CCAP to a user.
I’m essentially running two sites– a WP site and a custom site built on Python. The custom site picks up user data from WP to know what they should have access to. Therefore, having the CCAP associated with their account is essential. s2member shortcodes won’t work in my custom site.
In case you’re the curious type, here’s the low down on what exactly I’m doing:
This is a site for teachers. Registration, membership, resources, etc is done through s2member and WP. Course Management (creating courses, managing enrollment, viewing homework, etc) is done through my custom site. We pass along needed account info to this custom site from WP database.
We are about to require that students pay us a small fee when they register for a course (not to the teacher but to us to help offset our costs). However, some teachers want to pre-pay this amount for their students so that the course remains free to them. In that case, we would remove all instances of the fee from the student registration process. The cost for a teacher to do this would be based on the number of students taught the previous year. Thus, every year the amount would need to be re-evaluated and re-purchased.
My thought was to have teachers use the buy now form to buy the CCAP “prepay”. Then, my custom site could turn the fee feature on or off based on the CCAP associated with the particular teacher.
I figured with the limitations of the Buy Now form I would just manually go in and remove the CCAP from all users at the start of our year and then resend the link for them to purchase the CCAP. A little clunky but at this point, there are not too many teachers using this feature.