Hi all,
I have created trial content that is public (about half of a full article) as a teaser for site visitors. If they like the content, they can sign up and get access to the full articles. However, if someone has purchased a subscription and happens to visit a public page that links to the trial guide, they will be taken there instead of to the full guide that they purchased.
Of course, they can still get to the full guide by visiting the member area--either by typing in the URL for the member area page or clicking on a link in the member navigation.
I think this is a little confusing for members, so I'm wondering if I could create a script to query the Profiles API and check if a user is signed in and has purchased a subscription. Then if they clicked on a page that leads to a trial guide, and they are both signed in and have purchased a subscription, they would be redirected to the member area.
First off, I'm wondering if this is possible and secondly, how I might go about achieving the querying of the Profiles API. Any tips would be much appreciated!