Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Justin 19 posts 163 karma points
    Apr 10, 2015 @ 02:33
    Justin
    0

    Digital Product Downloads

    Hi guys,

    i have a customer that requires digital product downloads. I am not really concerned about the mechanism of allowing the customer the ability to download a digital product as i have done something similar outside of umbraco that i can implement. My question has more to do with how i can set this up in uCommerce.

    I will explain the solution i would like:

    I would like to have a uCommerce data type of file upload (or media picker) that can be added as a product definition (called something like 'digital file'). This will allow the user to select a file that will be attached to the product. As i say, i am confident from this point on that i have a mechanism that will allow the customer to download the file, but i don't know how to create a file upload uCommerce data type (or whether, infact, there is already one out there somewhere).

    So in summary:

    1) A uCommerce DataType of FileUpload or MediaPicker (something that allows the user to select a file from the media library or upload a file).

    2) A product definition 'Digital File' with dataType as in point 1 above.

    3) When creating a product, selecting a 'digital file' that is associated with the product that will be available for download (i'm ok with this bit).

    Any help/suggestion or comments would be great.

    thanks in advance

  • Martin 181 posts 740 karma points
    Apr 12, 2015 @ 14:42
    Martin
    0

    Hi Justin,

    I don't think uCommerce have a Media Picker (it does have a Image picker though). So you have to implement one yourself. You have not mentioned which version of uCommerce you're going with so you just get a link for latest version.

    http://docs.ucommerce.net/ucommerce/v6.6/extending-ucommerce/custom-data-type.html

    The link should tell you all you need for implementing your data type. If I were going to implement the data type for your solution I guess I would go for a picker which could point out files in media section and let Umbraco handle the upload functionality.

    Best regards Martin

  • Justin 19 posts 163 karma points
    Apr 14, 2015 @ 02:33
    Justin
    100

    Thanks martin,

    The link was very helpful. I ended up going with a dropDown list as it seemed the easiest to implement. I'll mark this as answered but as a side question, do all custom data type controls need to derive from WebControls, or are there other ways they can be created?

    Thanks again

    Actually, i am still struggling with this as the dropDownList idea wasn't thought through and has some problems associated with it.

    I am quite new to umbraco and use Razor c# as opposed to WebForms and WebControls, could someone maybe give me some pointers relating to Martins original idea of 'a picker which could point out files in media section and let Umbraco handle the upload functionality'

    thanks again

Please Sign in or register to post replies

Write your reply to:

Draft