PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Download an MP3 if product is purchased

  1. One of my items is a downloadable MP3. The user has the choice to order a hard copy of the album or download it. If they select to download the item, how can I redirect them to the URL or email them a link to download the .mp3. Not all notification emails should include the download url (if they've requested a hard copy).

    If possible, I'd like to limit them to one download so they can't just share the url with other people.

    Posted 11 years ago on Wednesday August 8, 2012 | Permalink
  2. There are a couple parts to this but it can be done. I would use the PluginBuddy S3 URLs plugin from iThemes (not affiliated):

    http://ithemes.com/free-wordpress-plugins/s3/

    That will allow you to create a download link which is only good for a period of time. That will cut down on the sharing of the link and giving other's access to the file.

    For the choice of "download" or "hard copy" do you want that information in their notification email, or in the confirmation which is displayed after successful form submission? We can modify either one (the notification email, or the confirmation text) based on their choice of hard copy or download, but we need to know which one so we can help you with the correct code. Thank you.

    Posted 11 years ago on Wednesday August 8, 2012 | Permalink
  3. You should also be able to use conditional shortcodes on the confirmation and notifications based on selection:

    http://www.gravityhelp.com/documentation/page/Shortcodes

    Posted 11 years ago on Wednesday August 8, 2012 | Permalink
  4. great!

    If the user selects "download", I'd like for them to see the download url in the confirmation text once they've paid via paypal.

    Posted 11 years ago on Wednesday August 8, 2012 | Permalink
  5. David Peralty

    Conditional Shortcodes in your notification will allow you to do that.

    Something like:
    [gravityforms action="conditional" merge_tag="{Type:1}" condition="is" value="download"]
    LINK TO DOWNLOAD
    [/gravityforms]

    Posted 11 years ago on Wednesday August 8, 2012 | Permalink
  6. ok, I'm finally going to work on this.

    Chris, thanks for the PluginBuddy S3 URLs plugin - that's exactly what I'm looking for. I plan on having just a download option for now. I'd like the user to pay $5 to paypal and then receive an email with this download URL (only good for a period of time). Thank you!

    Posted 11 years ago on Friday September 14, 2012 | Permalink
  7. Do you have enough information in the topic, especially from David, to pull this off now, or do you need help with any piece of it?

    Posted 11 years ago on Friday September 14, 2012 | Permalink
  8. @chris - I think I need help with this... Can you email me when you get a chance? louis.gubitosi [at] gmail.com.

    Thanks!

    Posted 11 years ago on Monday September 17, 2012 | Permalink
  9. Louis, we don't handle support via email. However, with a developer license, you have access to priority support. Or you can post in the forums here and we'll be happy to help where we can.

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  10. Thanks again Chris.

    Posted 11 years ago on Wednesday September 19, 2012 | Permalink
  11. I guess the only thing I need help with is sending the email (with a link) once the PayPal is received. I have the form and paypal set up and I also have the PluginBuddy S3 URLs plugin set up. Just need help with the email part of the process....

    Posted 11 years ago on Wednesday September 19, 2012 | Permalink
  12. On the PayPal feed, there is a check box near the bottom " Send user notification only when payment is received. " Be sure that is checked.

    Then, in your user notification area, you should place the S3 URL. I'm not familiar with the configuration of that plugin, but I assume there is some shortcode to get a URL? That is what should be in the user notification area, so that when PayPal payment is received, the user notification goes out with the link to your download.

    Posted 11 years ago on Wednesday September 19, 2012 | Permalink
  13. Can someone show me how to or suggest a plugin to make my download link a unique URL for each buyer and also set an expiration date to each URL? The Amazon S3 is only if I'm hosting my download on Amazon, which I'm not...

    Posted 11 years ago on Monday September 24, 2012 | Permalink
  14. I don't know of any other plugins which offer unique, expiring download links like that. You should be able to copy the functionality in that plugin, but maybe just host the content on your own server?

    One of the other download manager plugins I know of for WordPress handle expiring content like that. Here is one comparison I found: http://www.webdesignlessons.com/5-download-manager-plugins-for-wordpress/

    Posted 11 years ago on Monday September 24, 2012 | Permalink