NEW - SCM Access…
Posted: 08 October 2008 02:48 AM   [ Ignore ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13725
Joined  04-15-2006

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}
<p>No results here no_access</p>
{if:else}
<p>This shows if you do own the entry</p>
{/if}

{
/exp:scm_access}

{
/exp:weblog:entries} 

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 26 September 2009 04:58 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  51
Joined  04-22-2009

Hi Mark.

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

thanks,

Profile
 
 
Posted: 26 September 2009 05:20 AM   [ Ignore ]   [ # 2 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13725
Joined  04-15-2006

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

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile