WordPress.org

Ready to get started?Download WordPress

Forums

Seamless Donations
Custom Thank You Page Upon Completion of Paypal Transaction (3 posts)

  1. Mikejuly
    Member
    Posted 5 months ago #

    Hi Allen,

    First off excellent work on this plugin. I rate it 5 stars for ease of use and functionality.

    My question regards the 'thank you page'. Currently, the visitor is returned to the page where the shortcode is installed upon completion of the Paypal transaction, and works as designed with the field data from the dashboard.

    What I want to do is instead of this, direct the visitor to a separate landing page elsewhere on the site. I suspect this can be achieved by modifying the code found on the "seamless-donations/dgx-donate-paypalstd.php" page of the plugin editor - specifically I'm referring to this code approximately halfway down the page:

    $successUrl .= "thanks=1&sessionid=";
    $successUrl .= "$sessionID";

    Can you please provide insights as to how I can accomplish this?

    Also, is there a way I can test this functionality without repeatedly making a donation?

    Thanks Allen!

    MJ

    mikejuly.com

    http://wordpress.org/plugins/seamless-donations/

  2. allendav
    Member
    Plugin Author

    Posted 5 months ago #

    Hi Mike!

    Thank you for your vote of support!

    I wouldn't recommend modifying the code of the plugin ('cause your changes would be lost in the next upgrade).

    I will try to add a send-them-to-a-specified-page option in an upcoming release. In the meantime, try returning something like this in dgx_donate_display_thank_you() - which you can find near line 158 of dgx-donate.php

    <script>
        window.location = 'http://www.example.com/newlocation';
    </script>

    To test without donating, you can just put ?thanks=1 at the end of the URL for your donation page, e.g.

    http://www.example.com/donate/?thanks=1

    Hope this helps...

    ...Allen

  3. Mikejuly
    Member
    Posted 5 months ago #

    Thanks Allen. If my changes aren't going to stick when I update the plugin, I am not going to mess with it.

    One other thing you may care to consider is adding the option of changing the language in the field headers. I modified them in the .php files... you can see my changes here: http://grandjazzfest.org/give/

    It might be nice not to have to update them with every new version of the plugin.

    MJ

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.