We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

NEW - SCM Access…

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi there,

Just another very very quick one here. This plugin was written to help out in this thread here so that you can have a way on your single entry pages of checking if a user has already purchased an item using the Simple Commerce Module. May have uses so thought I would post it up here in the plugins forum for all to see.

Usage :

{exp:weblog:entries weblog="default_site" limit="1"}

{exp:scm_access entry_id="{entry_id}"}

{if no_access}
No results here = no_access
{if:else}
This shows if you do own the entry
{/if}

{/exp:scm_access}

{/exp:weblog:entries}

Best wishes,

Mark

       
Sheye Rosemeyer's avatar
Sheye Rosemeyer
39 posts
15 years ago
Sheye Rosemeyer's avatar Sheye Rosemeyer

Hi Mark.

Can the following contain more than one entry? 5|32|45? {exp:scm_access entry_id="{entry_id}”}

thanks,

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hi Sheye,

At the moment it can’t as the way it works (although admittedly not the idea way) is to take the entry_ids from the weblog tag and this calls the plugin each time. Like I said definitely not the best way of doing things and I realise that now so would have to re-write the plugin in order for it to do that.

If I get the chance soon then I will take a look at doing that.

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.