Shop: sell downloadable media files

Author Message

Bernhard Reiter

Monday 21 March 2005 12:59:05 am

Hi,
In my shop i want to sell media files (audio, video...). So if a customer buys them, he should somehow be able to download them.
I am quiet sure that someone has done this already, so before reinventing the wheel, i wanted to ask if someone can give me some general guidelines how to do this (for example "i have done this using a workflow").

Thanks in advance!

Lex 007

Monday 21 March 2005 2:54:11 am

Hello,

You can do that the exact same way ez.no allows you to buy and download Online Editor. After you buy it, access for downloading is granted for 30 min, then a workflow "unpublishes" the access.

Search for this on the forum ...

Lex

Bernhard Reiter

Monday 21 March 2005 4:51:23 am

Could not find much about that in the forum.

But what happens if the user has no internet access in that 30 mins, for example because his pc crashes, or likelier because his provider has a problem?

I like the way, for example, how allofmp3.com handles it.
After buying a file you see a download link in the user menu. After the download has finished, the link disappears.
I think that could be achieved by creating a new contentobject with an hash as name (so that download link never has the same url), and deleting it again after the user has finished with downloading.

The only thing i dont know is how to decide when the user has downloaded the file?

Steve P

Tuesday 19 April 2005 6:22:27 am

Can someone point me to an example please?

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 19 2025 00:34:30
Script start
Timing: Jan 19 2025 00:34:30
Module start 'layout'
Timing: Jan 19 2025 00:34:30
Module start 'content'
Timing: Jan 19 2025 00:34:31
Module end 'content'
Timing: Jan 19 2025 00:34:31
Script end

Main resources:

Total runtime0.7447 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9219152.6250
Module start 'layout' 0.00580.0029 740.546939.4609
Module start 'content' 0.00870.7343 780.0078543.7109
Module end 'content' 0.74300.0016 1,323.718812.1563
Script end 0.7446  1,335.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4673160.0002
Check MTime0.00130.1812160.0001
Mysql Total
Database connection0.00080.113610.0008
Mysqli_queries0.696393.5043620.0112
Looping result0.00070.0995600.0000
Template Total0.715896.120.3579
Template load0.00220.293420.0011
Template processing0.713695.825020.3568
Template load and register function0.00020.030510.0002
states
state_id_array0.00070.091210.0007
state_identifier_array0.00090.126620.0005
Override
Cache load0.00180.2474220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.071330.0002
Fetch class attribute name0.00120.158350.0002
XML
Image XML parsing0.00070.095930.0002
class_abstraction
Instantiating content class attribute0.00000.002150.0000
General
dbfile0.00090.1213160.0001
String conversion0.00000.001240.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs