Forums / Setup & design / Paid for content

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

eZ debug

Timing: Jan 18 2025 19:26:16
Script start
Timing: Jan 18 2025 19:26:16
Module start 'content'
Timing: Jan 18 2025 19:26:17
Module end 'content'
Timing: Jan 18 2025 19:26:17
Script end

Main resources:

Total runtime0.9176 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.7422180.8438
Module start 'content' 0.00730.7926 769.5859668.4063
Module end 'content' 0.79990.1177 1,437.9922337.0859
Script end 0.9176  1,775.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4967210.0002
Check MTime0.00160.1771210.0001
Mysql Total
Database connection0.00070.072410.0007
Mysqli_queries0.837391.24332100.0040
Looping result0.00260.27792080.0000
Template Total0.887596.720.4438
Template load0.00190.209720.0010
Template processing0.885696.509520.4428
Template load and register function0.00010.015410.0001
states
state_id_array0.00080.083710.0008
state_identifier_array0.00100.109620.0005
Override
Cache load0.00160.1793290.0001
Sytem overhead
Fetch class attribute can translate value0.00130.144650.0003
Fetch class attribute name0.00150.1674100.0002
XML
Image XML parsing0.00230.252750.0005
class_abstraction
Instantiating content class attribute0.00000.0020110.0000
General
dbfile0.00450.4890440.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs