I've got downloads working wonderfully, except for one detail which is proving to create some serious headaches for our constituents (we're a non-profit organization) as well as our support staff. When a downloadable product is set as a folder, all of the contents of that folder are indeed listed in the user's account to download as expected; however, a link to the folder is also in the list.
The folder link doesn't do anything but return the following error: "The following URL is not a valid download link. Please contact the site administrator if this message has been received in error." which they most certainly do... constantly, hence the headaches. It's very frustrating for the user as they tend to think they're not getting something they should, until they have the situation explained by support staff, which is very frustrating for the support staff.
Can the folder links in the user's account be removed/prevented from showing up altogether? The individual file links within the folder that show up are sufficient. The folder link itself is not needed.
I'm using Ubercart 6.x-2.4
Just using CSS to hide the folder links really is not a viable option. See the attached screenshot for reference.
In this case, the contents of the green box are of a 'Folder', while the contents of the blue box are of a 'File'. There are indeed ID's which one could use to hide any specific item in the list; however, the ID's are not specific to a particular file/folder, they are specific only to the current items rendered dynamically in the list. So, every constituent's download list would look different than this. One may have a 'File' in one row, and a 'Folder' in another and vice versa.
One might say that a CSS Class could be added somehow to items which are a 'Folder' to render them display:none; however, that ultimately will not solve the email problems which are also created, as the [file-downloads] variable in the email notice also contains a link to any 'Folder'.
The right solution, in my very humble opinion, would be to eliminate the 'Folder' links altogether, but still continue to render all 'File' links within the folder.
I think the current functionality really should be labeled as a bug due to the fact that a 'Folder' link doesn't really do anything.
Please help. Please advise. Thank you,
Todd
| Comment | File | Size | Author |
|---|---|---|---|
| downloads_markup_screenshot.jpg | 138.75 KB | IFL Todd |
Comments
Comment #1
moka commentedsame here
Comment #2
longwaveDuplicate of #835756: "Purchased files" tab shows download links for directories also