PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11/14/2018 3:43 PM by  Will Strohl
Multiple downloads
 6 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





New Member






--
6/12/2018 4:32 AM
    We have a need where, when a user buys a downloadable product twice, it should show the download twice in the list. Even if it is the same download.
    So can this be done?

    I saw this file called _OrderDownloads.cshtml where it says

    @foreach (ProductFile f in ViewBag.FileDownloads)
    {
    ....
    @f.ShortDescription
    ....
    }

    So perhaps can you do something like:
    @foreach (ProductFile f in ViewBag.FileDownloads)
    {
    ....
    @foreach (Product p in Order.LineItem)
    {
    @p.ShortDescription
    }
    ....
    }





    Veteran Member






    --
    6/29/2018 11:45 AM
    Could you please describe the use case a bit so that we can better understand what you're trying to do?
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    New Member






    --
    7/2/2018 3:03 AM
    Well, there is an option to attach 'file downloads' to a product.
    So when someone buys the product, they can see a file download when they log in.
    However, when the same person buys the product multiple times, they still only see one download.
    Which is kind of logical, since it is the same file.
    However, we've got a customer how requires that if you buy a product 3 times, they want to show the download 3 times as well.
    So I thought perhaps this might be possible by looping through the number of products you have bought and show a download link for each product.





    Basic Member






    --
    10/17/2018 1:58 PM
    Marnix, I would approach this a different way...

    I would instead have a page on the site which is under a My Account or Store/Orders type of page... on that page I would place a DNN documents module and list out all of the files that you want the user to download/have access to.

    I would place Role permission restrictions on the Page so that it can only be loaded by people with that role and, if you like, on the document folder so that only users with that role can access the files.

    Then, when a user purchases a product, I would give them that Role (and you could also assign it to existing users, etc as needed).





    New Member






    --
    10/20/2018 1:47 AM
    [quote=MooreCreative;1050]Marnix, I would approach this a different way...

    I would instead have a page on the site which is under a My Account or Store/Orders type of page... on that page I would place a DNN documents module and list out all of the files that you want the user to download/have access to.

    I would place Role permission restrictions on the Page so that it can only be loaded by people with that role and, if you like, on the document folder so that only users with that role can access the files.

    Then, when a user purchases a product, I would give them that Role (and you could also assign it to existing users, etc as needed).[/quote]

    good Idea MooreCreative , how did you implemented role assignment to the user after purchasing a product through HCC?
    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: