Skip to content

Allow admins to grant access to new files for old customers on a product #1896

@JustinSainton

Description

@JustinSainton

Currently, if you add a new file (say, documentation, or maybe an updated version the downloadable file) to a digital product - that new file is not available to those that have purchased the product.

That is lame. Granted, this may sometimes be the intention. But it certainly shouldn't be the default. I've confirmed with @pippinsplugins that EDD works on the assumption that if you upload a file to a product, it's available to all who have purchased it - past, present, future. We should function the same way.

The problem, of course, is our legacy code. Isn't it always? Our download_status table is filled upon purchase with file IDs/purchase IDs, etc. The entire paradigm is sort of backwards, and I'm not out to switch things up too much. I want a passable, functional solution here - not out to be EDD.

So my proposal is this: when a store admin adds a new download to a product, simply grant them ability to fill out the download_status table with entries for the new file for all those who have downloaded that product in the past. 90% of the time, this will actually not be that big of a performance hit. We need to take performance into account for the other 10%.

Likewise, it would be great to add the ability in the sales log single view for admins to grant access to files represented in the cart contents of that order that have not already been granted. That should be really helpful for the one-off requests that our admins get from time to time.

Open to thoughts, suggestions and PRs from others on this, but I definitely want to see it in core soon.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions