Paid for content

Author Message

Steve P

Tuesday 19 April 2005 6:36:20 am

Can someone point me to docs or examples for setting shop items as paid for content please [using ezPayPal]. I'm guessing workflows but a bit lost. Thanks

Łukasz Serwatka

Monday 25 April 2005 2:02:59 am

Hi Steve,

Workflow event on publish to assign user->special group. Setup the paypal payment as event.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

kracker (the)

Monday 25 April 2005 2:13:18 am

I wonder if anyone has done a "paid for template" type solution, paid to be allowed to used the member templates / section which simply uses different override templates on the same information?

seems kinda lame but then ... everybody else is doing it so why can't we?

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Bård Farstad

Monday 25 April 2005 2:31:47 am

Kracker,

this is actually very easy to do. Since the view cache is unique pr user group combination you can just have a check in the template if a user is member of group x. Then you include the real template, if not include a template which shows a teaser/introduction or simply just a text telling him to log in or buy membership.

--bård

Documentation: http://ez.no/doc

Steve P

Thursday 05 May 2005 5:08:44 am

Thanks for this. I have created a template that allows logged in users to see a file & offers the file to "non-members" as a paid for item.
My actual problem is how to show the file for download after payment completion!

Steve P

Tuesday 10 May 2005 5:30:34 am

Shame this seems to have died! I bet someone knows how to do this...

Bård Farstad

Tuesday 10 May 2005 5:50:54 am

Steve,

you need to create a workflow event (requires some PHP programming) which assigns the user doing the shopping to a specific user group, after payment. Then you create a role which grants which is a member of that user group permissions to download (read) the files you want to sell.

Maybe the event could even send the user an e-mail with a direct link to the download.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:24:59
Script start
Timing: Jan 18 2025 22:24:59
Module start 'layout'
Timing: Jan 18 2025 22:24:59
Module start 'content'
Timing: Jan 18 2025 22:25:00
Module end 'content'
Timing: Jan 18 2025 22:25:00
Script end

Main resources:

Total runtime0.8802 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.8125152.6094
Module start 'layout' 0.00690.0032 740.421939.4141
Module start 'content' 0.01010.8685 779.8359667.3438
Module end 'content' 0.87860.0015 1,447.179716.1875
Script end 0.8801  1,463.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3989160.0002
Check MTime0.00140.1550160.0001
Mysql Total
Database connection0.00090.101610.0009
Mysqli_queries0.815492.6453730.0112
Looping result0.00080.0868710.0000
Template Total0.844595.920.4222
Template load0.00200.231820.0010
Template processing0.842495.707920.4212
Template load and register function0.00020.024910.0002
states
state_id_array0.00130.146010.0013
state_identifier_array0.00210.240920.0011
Override
Cache load0.00170.1944290.0001
Sytem overhead
Fetch class attribute can translate value0.00100.113540.0002
Fetch class attribute name0.00120.1375100.0001
XML
Image XML parsing0.00170.198240.0004
class_abstraction
Instantiating content class attribute0.00000.0024110.0000
General
dbfile0.00110.1199330.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs