Menu
Product
Showcase
Partners
Community
Resources
Services
Sign Up / Log In
Try It Now
Download
Product
Showcase
Partners
Community
Resources
Services
Sign Up / Log In
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Prev
Go to previous topic
Next
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:
Oldest First
Most Recent First
You are not authorized to post a reply.
Page 1 of 2
1
2
>
>>
Author
Messages
Marnix Bouwman
New Member
Posts:12
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
}
....
}
Will Strohl
Veteran Member
Posts:570
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
Marnix Bouwman
New Member
Posts:12
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.
MooreCreative
Basic Member
Posts:97
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).
moslem pasokh
New Member
Posts:12
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 2
1
2
>
>>
Private
General
--Ask Anything
--Content Management
--Customer Experience
--Marketing
--SEO
Merchants
--Catalog Management
--Marketing/Promotions
--Order Management
--Payments
--Shipping
--Store Administration (General)
Designers
--Themes
--Viewsets
--General Design
Developers
--Extension Points (Store-Relate...
--Implementation
--Installation and Upgrade
--Module Development
--General Development
Forums
Merchants
Order Management
Sign-up for the Hotcakes Community Newsletter:
E-Mail Address