Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Can the PDF Stamper be set to use a download link?

by

Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › WP PDF Stamper Troubleshooting › Can the PDF Stamper be set to use a download link?

Tagged: membership site, pdf stamper

  • This topic has 11 replies, 4 voices, and was last updated 11 years, 3 months ago by wzp.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • January 5, 2012 at 4:31 pm #5191
    toddbock
    Member

    I just purchased PDF stamper, and all I can find is regarding it emailing the file.

    I want to put it into a membership site (WishList Member) and have the download link there. How can that be set up?

    Thank you,

    Todd

    January 5, 2012 at 6:19 pm #40382
    wzp
    Moderator

    What kind of information do you want stamped, and are they being charged for the download?

    January 6, 2012 at 3:48 am #40383
    toddbock
    Member

    Name and email in the footer. It is going through paypal, yes, they are paying for it.

    I would like paypal to go to my sites registration then they get the download. I want to protect the link as well as the pdf.

    Thank you,

    Todd

    January 6, 2012 at 6:06 am #40384
    admin
    Keymaster

    Hi Todd, We do not have any Integration available for PDF Stamper and the WishList member plugin. The available integration options are explained in the integration section of the documentation (WishList member plugin is definitely not one of them):

    http://www.tipsandtricks-hq.com/wp-pdf-stamper/

    If you have gotten the wrong impression that an integration between these two plugins exist please post a link to the page where you got this idea from so I can chase it up.

    January 30, 2014 at 6:33 pm #40385
    bentley74
    Member

    I have just discovered this challenge myself after installing PDF stamper on a Wishlist membership site.

    I’m curious – wouldn’t the e-cart plugin (I am using on the same site) have the necessary customer info to stamp in the file?

    Any potential for you adding some sort of integration option (with Wishlist) for this at some point? I usually do use eMember, but this is the one site where I used Wishlist instead (don’t think I knew about eMember at the time).

    Thanks

    Bentley

    January 30, 2014 at 8:30 pm #40386
    wzp
    Moderator

    It would really be more practical for you to use eStore (which *does* integrate with WishList) instead:

    http://www.tipsandtricks-hq.com/wordpress-estore-plugin-complete-solution-to-sell-digital-products-from-your-wordpress-blog-securely-1059?ap_id=TheAssurer

    In eStore, when the download link is generated; it checks to see if the product should be stamped, as prescribed in the product database. It then invokes the PDF Stamper with the buyer information.

    January 30, 2014 at 10:51 pm #40387
    bentley74
    Member

    I AM using eStore – lol

    That’s why I was wondering why I couldn’t still stamp downloads accessed inside my membership (which is WishList) – I figured there would be some way for it to access customer data inside eCart. But I guess that doesn’t really make sense – since the stamping is happening long after the eCart transaction is over (I want to have a download button inside the members area).

    Isn’t there some way to do this based on WordPress user info (pretty sure there are WordPress user accounts corresponding to each record in WishList)?

    January 30, 2014 at 10:57 pm #40388
    bentley74
    Member

    Sorry for the confusion btw – I tend to flip-flop between “e-cart” and e-store” for some reason! lol

    I am definitely referring to “e-Store” :-)

    January 30, 2014 at 11:42 pm #40389
    wzp
    Moderator

    Well… how “brave” are you at PHP hacks? If you look inside the file eStore_squeeze_form_functions.php for the string “free_download_pseudo_payment_data” you can see how the name and email address, from the squeeze form, is passed to the PDF Stamper; via the generate_download_link_for_product() function. All you’d have to do is plug whatever you want into similar code.

    January 31, 2014 at 4:00 am #40390
    bentley74
    Member

    I don’t mind playing around with PHP a little (but I’m no pro, that’s for sure).

    Can you explain “plug whatever you want into similar code”, or – better yet – give me a little example?

    Thanks for your help!

    January 31, 2014 at 4:07 am #40391
    bentley74
    Member

    BTW – I am assuming eStore_squeeze_form_functions.php is a file in the eStore plugin? I could not find it listed (using the WP plugin editor)

    January 31, 2014 at 5:40 pm #40392
    wzp
    Moderator

    Yes, that is the name of an eStore file. I seriously recommend ***NOT*** using the WP plugin editor for this kind of work. You can do a much better (and safer) job by editing the files you are going to change on your PC and then re-uploading them to your site. I recommend an Open Source PHP file editor for editing the files on your PC (you can use “Vim”).

    This kind of request is getting beyond the scope of the support forum. However, since you’ve been with us for a few years; I’m going to give you some “guidance” and point you in the correct direction.

    If you examine the eStore_includes2.php file, you will find a free_download_pseudo_payment_data() function. The purpose of this function is to take a name and email address, presumably from a squeeze form, and create a fuax payment data array; similar to what is created during an actual purchase.

    Now then, in the eStore_squeeze_form_functions.php file, there are 2 lines of code, in which we take the input from the squeeze form and use free_download_pseudo_payment_data() to create the fuax payment data. We then call the generate_download_link_for_product() function which generates, and if necessary stamps, the requested product:

    // Populate the pseudo payment data.
    $payment_data = free_download_pseudo_payment_data($name, $email);
    // Generate the download link.
    $download = generate_download_link_for_product($prod_id, '', $payment_data);

    You now have “enough” information to either figure out the rest, hire a programmer, or seriously injure yourself.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ