How to setup media for download after purchase?

Author Message

Craig Broyles

Saturday 02 September 2006 6:25:02 am

So I am trying to use this web application to sell digital media content I have created. I thought the documentation said it was possible, but I can't figure it out. What I want to have happen...

A customer browsing my site clicks on a product I am selling...They are asked to pay with paypal, once the transaction is complete, I want the media file to begin downloading on their computer.

I guess it would be similar to how iTunes works. Any info is appreciated.

Martin Ulrich

Sunday 03 September 2006 4:32:10 am

I do a solution, but is surely not professionel, but enough for my small business.

Add an xmltext-field to my product-class and than put the download-link within this xml-field.

Then modify template orderview.tpl showing this xml-field.

Now on last page on checkout a downloadlink will be präsentated to customers.

regards :)

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Clemens T

Sunday 03 September 2006 3:37:22 pm

I'd build my own module, which oversees the payment/download process as a whole:

Download ----> redirect to PayPal site, which has a 'redirectURL' (I think) to redirect back to your site after the payment is complete--> (new view, verify the payment has been processed/validated) people get 1 token to download the file. You could download your own: /downloadfile/ (check the core ezpublihs php's, to do so).. and you can easily create something like:

if($token){
 eZBinaryFileHandler::downloadFile("....");
} else {
//error
}

It's just suggestions, not really a good story.. but you have to be familiar to write a module that is as complex as the one you want.

Greetings,
Clemens

Nuno Portugal

Friday 17 November 2006 11:51:54 am

Hi Sepp Spalt

How did you set in orderview.tpl to show XML fields, i can only see the options field, tried to add other attributes to product , set {attribute_view_gui attribute=$node.object.data_map.myxmlfield} in the form and it shows in product full view but when you advance in the shop, confirmorder.tpl, orderview.tpl doesn´t show the xml field...

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 20:55:11
Script start
Timing: Jan 18 2025 20:55:11
Module start 'layout'
Timing: Jan 18 2025 20:55:11
Module start 'content'
Timing: Jan 18 2025 20:55:12
Module end 'content'
Timing: Jan 18 2025 20:55:12
Script end

Main resources:

Total runtime0.9173 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1797152.6406
Module start 'layout' 0.00540.0031 741.820339.4922
Module start 'content' 0.00850.9075 781.3125606.7656
Module end 'content' 0.91590.0013 1,388.078112.1250
Script end 0.9173  1,400.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3559160.0002
Check MTime0.00130.1411160.0001
Mysql Total
Database connection0.00100.110310.0010
Mysqli_queries0.861293.8815640.0135
Looping result0.00070.0812620.0000
Template Total0.882296.220.4411
Template load0.00210.234220.0011
Template processing0.880195.938020.4400
Template load and register function0.00130.137810.0013
states
state_id_array0.00100.103810.0010
state_identifier_array0.00110.123920.0006
Override
Cache load0.00180.1960230.0001
Sytem overhead
Fetch class attribute can translate value0.00090.098040.0002
Fetch class attribute name0.00130.138950.0003
XML
Image XML parsing0.00310.334140.0008
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00370.4082130.0003
String conversion0.00000.000940.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs