Marnix Bouwman
2018-06-12T08:32:01Z
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
}
....
}
Will Strohl
2018-06-29T15:45:37Z
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
Marnix Bouwman
2018-07-02T07:03:12Z
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.
MooreCreative
2018-10-17T17:58:32Z
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).
moslem pasokh
2018-10-20T05:47:17Z
Originally Posted by: MooreCreative 

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).



good Idea MooreCreative , how did you implemented role assignment to the user after purchasing a product through HCC?
Reto Cossalter
2018-10-23T08:34:55Z
Hi

To add users to a role after purchasing a product you have to look into Membership Product Types.
Basically you create a Membership Product Type and add select this newly created Product Type on the Product you want to have the role added.
https://hotcakescommerce...Membership-Product-Types 
Will Strohl
2018-11-14T19:43:25Z
I like MooreCreative's idea for this as well. You can definitely show the download multiple times. It would require an interesting update to the custom viewset. However, the user experience and ongoing maintenance would not be great.
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Loading
  • Sign-up for the Hotcakes Community Newsletter: