• Instead of downloading a “static EDD product” I want to sell a PDF file, which is dynamically generated from questions, that the user has answered before (Some sort of consulting system with automaticallyy generated answers). Form my point of view, roughly the following steps are necessary:
    1. Generate a PDF file and write it into a predefined folder on the server under a dynamically generated filename
    2. Change the EDD download in a way, that this dynamically generated PDF file will be downloaded instead of the “static product” (perhaps using the “edd_requested_file” – function)
    Who has done something like that? Is it the right way as I have described it? What else is necessary to do what I want (what did I forget?)

Viewing 1 replies (of 1 total)
  • Hi @merlinmuenchen

    Yes, you can add dynamic files to EDD purchase receipt and purchase email also but it can be dome with some custom code.

    Here I am providing you some Hooks and Filter which can help you to achieve your result.
    1) File Filter : apply_filters( 'edd_download_files', $this->files, $this->ID, $variable_price_id )

    The above one is a filter with arguments. You can add filter and add your own file with the existing EDD download files.

    Here is the more info about the hook
    https://hookr.io/filters/edd_download_files/

Viewing 1 replies (of 1 total)
  • The topic ‘EDD download for dynamically generated file’ is closed to new replies.