0

I have set up the Commerce Module on my website with the Commerce File contrib module, which is working fine. However, I would like to be able to display the links to the files that have been purchased on a seperate node. So is there any way that I can use PHP, or even tokens, to get the URL that enables the user to download the file for use in my own hyperlink on a custom node?

I think I've made that clear enough, but please don't hesitate to ask if you need me to clarify anything.

Thanks in advance

2
  • Commerce File 1.x or 2.x? May 4, 2014 at 16:58
  • @BojanZivanovic It's Commerce File 2.x. At the minute I do have quite an ugly workaround where I generate the download token by loading the file by id, and then prepending it to /file/%fid/download?token= but obviously that's not the best or most reliable so I would prefer a propper solution
    – Andy
    May 4, 2014 at 20:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.