Store Front template tags problem

Alison's Avatar

Alison

28 Mar, 2011 11:03 PM

I have installed StoreFront on Moveable Type 4, and the admin area seems to be working as expected, but I have a problem getting it working in my templates.

I am trying to create pages that only show the content to subscribers. I used the example code for a subscription from this page:
http://endevver.com/plugins/store-front/documentation/designers-gui...

I get an error that <mt:IfUserHasActiveSubscription> is unrecognized.

Am I using the right tags here? I want it to do exactly what that example code should do - pull in a template module with content if the person is a subscriber, and show an alternate template module if they are not a subscriber, or are logged out.

I was hoping it would work exactly as your instructions suggest.

Any help would be appreciated!

cheers,
Alison

  1. Support Staff 1 Posted by Byrne Reese on 28 Mar, 2011 11:38 PM

    Byrne Reese's Avatar

    The template tag you are seeing referenced, <mt:IfUserHasActiveSubscription> has not yet been implemented. But have no fear, we can get that turned around for you really quickly. What I want to do is ask you if you could share with us how you were building your templates to see if it matches up with how we intended people to use the system.

    The template tags you see in the documentation, e.g. <mt:IfUserHasActiveSubscription> works only in a dynamic context, e.g. on a user's profile page. The profile page therefore becomes the place on the web site where a user is invited to manage their subscription, create a new one, etc. So this is how were thinking it would all come together:

    1) user logs in
    2) user navigates to "Manage my Subscription"
    3) this takes them to a CGI which loads the View Profile template
    4) the "View Profile" template contains the conditional logic for a) creating a subscription, or b) changing or c) canceling their subscription.

    The other mode we suggest in our documentation is to rely on dynamic publishing, or secondarily, to use a mt.subscription.php class we would provide you with. This would allow you to display subscription status dynamically via PHP.

    In summary - the store front plugin has not yet fully implemented the features you need. To focus our efforts internally, share with us how you would like it to work and we can see if we can get some engineers to work on it.

  2. 2 Posted by Alison on 29 Mar, 2011 06:21 PM

    Alison's Avatar

    The site I want to add it to is a behemoth of a site, with literally hundreds of categories. We want to keep what is currently there all public, and add a new premium content area that is only available to subscribers.

    Rather than try and shoehorn more code into that site, the idea was to create a new blog on the domain that looked visually like part of the main site to use as our members' area.

    This area is going to consist of three things -
    a magazine style blog using date based archives
    an offers area
    some additional information pages

    There will also be a main page welcoming the viewer to the members area.

    So pretty much all the content in this area will be for subscribers only.

    I tend to build using a lot of template modules so that any changes or updates can be done in the minimum of files, and the site would be published dynamically (not using php, but by mt's dynamic settings).

    I was hoping that the sample code you'd provided would allow the site to assess the status of the visitor when they loaded the page, and if they were a logged in subscriber, would load the content module, and if they were not a subscriber and/or not logged in, it would give them a message suggesting that they log in and/or subscribe, with links to do that.

    The scenario of managing their subscription that you describe above would also be clearly useful, however we would not be offering a refund if they decide to cancel their subscription. A way for them to set it to renew - or not renew - would be good.

    If they create a membership on the site they will be able to manage that, but until they subscribe they should not be able to view any of the content in this area. So the member sign up page should end on a page which says "and now to pay the subscription click here" or something along those lines.

    The most important thing for me is getting the subscription to work with the site so that they can receive the thing that they've paid for - ie, content that others cannot see.

    I hope that helps?

  3. Support Staff 3 Posted by Jay Allen on 30 Nov, 2011 07:11 PM

    Jay Allen's Avatar

    Hi Alison. Please accept our apologies for not responding until now. I'm going through the system looking for straggler posts like this one and wanted to know if this issue is still relevant for you. If so, please let me know so I can bump it up on our radar.

    Once again, sorry to have dropped the ball. We aim to do better in the future.

    Jay Allen
    Principal, Endevver LLC

  4. 4 Posted by Alison on 12 Jan, 2012 01:50 PM

    Alison's Avatar

    Hi Jay,

    If this plugin was ever made functional, then I would still use it, as I have not found anything that can do the same role.

    I would aim to use it in exactly the manner which you describe:

    "Allow bloggers to offer premium access to their blog on a subscription basis, also known as a "pay wall." In this scenario, a user of this plugin would define a product that requires a recurring payment. They would then publish a "Subscribe Now" button on their web site, that when clicked would take a user through a payment processor to purchase the subscription. The user of the plugin would then augment their templates to evaluate whether or not a user has purchased a specific subscription and display content (or not display content) accordingly."

    cheers,
    alison

  5. 5 Posted by Alison on 29 Mar, 2012 11:32 AM

    Alison's Avatar

    Hi Jay, just an update. I am going to investigate switching the site to Word Press, as I believe that it's better supported by its developing community and includes existing plugins that do this specific task.

  6. Support Staff 6 Posted by Jay Allen on 04 Apr, 2012 06:29 PM

    Jay Allen's Avatar

    Sounds entirely reasonable. Good luck, Alison.

  7. Jay Allen closed this discussion on 04 Apr, 2012 06:29 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac