Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
Offline Marnix Bouwman  
#1 Posted : Tuesday, June 12, 2018 3:32:01 AM(UTC)
Marnix Bouwman

Rank: Member

Reputation:

Groups: Registered, Registered Users, Subscribers
Joined: 6/9/2017(UTC)
Posts: 12

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

Edited by user Tuesday, June 12, 2018 3:36:13 AM(UTC)  | Reason: Not specified

Offline Will Strohl  
#2 Posted : Friday, June 29, 2018 10:45:37 AM(UTC)
Will Strohl

Rank: Administration

Reputation:

Groups: Administrators, HCC-Employee-Store-Manager, HCC-Employee-Support, HCC-Partner, Moderators, Partners, Registered, Registered Users, Subscribers
Joined: 12/22/2016(UTC)
Posts: 342

Thanks: 78 times
Was thanked: 59 time(s) in 57 post(s)
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
Offline Marnix Bouwman  
#3 Posted : Monday, July 2, 2018 2:03:12 AM(UTC)
Marnix Bouwman

Rank: Member

Reputation:

Groups: Registered, Registered Users, Subscribers
Joined: 6/9/2017(UTC)
Posts: 12

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.
Offline MooreCreative  
#4 Posted : Wednesday, October 17, 2018 12:58:32 PM(UTC)
MooreCreative

Rank: Advanced Member

Reputation:

Groups: HCC-Partner, Partners, Registered, Registered Users, Subscribers
Joined: 12/28/2016(UTC)
Posts: 59

Thanks: 10 times
Was thanked: 30 time(s) in 26 post(s)
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).
thanks 2 users thanked MooreCreative for this useful post.
moslem pasokh on 10/20/2018(UTC), Will Strohl on 11/14/2018(UTC)
Offline moslem pasokh  
#5 Posted : Saturday, October 20, 2018 12:47:17 AM(UTC)
moslem pasokh

Rank: Newbie

Reputation:

Groups: Registered, Registered Users, Subscribers
Joined: 6/9/2017(UTC)
Posts: 7

Thanks: 9 times
Originally Posted by: MooreCreative Go to Quoted Post
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?
Offline Reto Cossalter  
#6 Posted : Tuesday, October 23, 2018 3:34:55 AM(UTC)
Reto Cossalter

Rank: Advanced Member

Reputation:

Groups: HCC-Partner, Registered, Registered Users, Subscribers
Joined: 6/9/2017(UTC)
Posts: 47

Thanks: 25 times
Was thanked: 24 time(s) in 21 post(s)
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.
See the howto here: https://hotcakescommerce...Membership-Product-Types
Offline Will Strohl  
#7 Posted : Wednesday, November 14, 2018 2:43:25 PM(UTC)
Will Strohl

Rank: Administration

Reputation:

Groups: Administrators, HCC-Employee-Store-Manager, HCC-Employee-Support, HCC-Partner, Moderators, Partners, Registered, Registered Users, Subscribers
Joined: 12/22/2016(UTC)
Posts: 342

Thanks: 78 times
Was thanked: 59 time(s) in 57 post(s)
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
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.298 seconds.

Notification

Icon
Error

Loading
  • Sign-up for the Hotcakes Community Newsletter: