Brett, That would be a great modification to the snippet if it could auto generate a MODx user account.The more subscription options the better. I use a modified version of the subscription_link snippet myself. It’s called from the user profile page and displays a subscription link if the user hasn’t yet subscribed or if it has expired and displays the expiry date if the subscription is active.
Danthach6, I think Brett explains the subscription_link snippet well but just to confirm. The snippet checks to see whether the user is logged in or not. If they are, the subLinkTpl chunk is displayed, if not, the regLinkTpl chunk is displayed.
For your "SubscriptionLink" chunk, you need to leave the userID placeholder as a placeholder so that it picks up the ID of the logged in user and adds the subscription to the right account. If you only have one type of subscription, you can hard code all the other values into the chunk. Otherwise, you will have to create a TV for each of the values and apply those to the template your product page uses. So a TV called product_code, one called product_price etc. If you have more than one type of subscription you’re better off creating the TVs and leaving the placeholders in.
If you need more help, I’ve written some documentation on this. It’s not completely finished but it might help.
Bob1000, I would greatly like to read your documentation. Thanks for the help!
Forgive my ignorance.
I have just stumbled upon this Foxycart integration - which is a terrific idea and may be perfect for what I need.
Bob1000, if your documentation would bring me up to speed rapidly, I may be able to contribute in some small way to the coding effort in addition to getting a working subscription system up and running.
Lee
We have a scenario where there are three levels. Guests can see a certain amount of material we’ll call Area A. Most people choose to register for free (using just MODx registration) and then get access to more material (lets call it Area B) and get enrolled in a newsletter. Only about 10-20% will upgrade to the extended content area (Area C) and special newsletters (an additional segmentation of the newsletter).
Should Area C people’s monthly subscription lapse, will they still fall back to being a registered user and have access to Area B?
Okay, I feel like I just wrote one of those "if the train to Portsmouth is going 40 miles an hour" logic problems, haha.
Also (not necessarily a question for Luke or Brett although you guys might have some thoughts on this) what is the best newsletter software to use for this implementation? I like MailChimp’s features, but also have seen that Campaign Monitor / MailBuild might have some integration history with Foxy/MODx. Any suggestions on how to structure the setup of the two newsletter segments?
Thanks!
John
It seems this error only occurs when I envoke the SubscriptionLink chunk in a page.
Any thoughts?
@todd
Are you sure you named the tv’s exactly as the script expects? It looks like the SubscriptionLink is failing to pick them up correctly.
L