WordPress.org

Ready to get started?Download WordPress

Forums

Seamless Donations
Changing Default Currency (3 posts)

  1. Vin.F
    Member
    Posted 1 year ago #

    Hi,
    Great plugin you've developed there. Possibly the most feature rich donations plugin I've come across in the plugin repository.

    I have a quick question, It may be an easy fix but I'm not entirely sure how to do this.

    I would like to be able to set the default currency to Euro when donors are directed to paypal upon submission.

    I know that I can define the property usingcurrency_code='EU' but I'm not sure where to add this and in what file it should be added to.

    FYI I have updated the the default donation amounts to reflect Euro and I have also changed the states dropdown to countries list so changing the currency on paypal is the last step in making this more applicable to our visitors.

    Ideally I would like if the form could change the default currency based on the visitors country selection but would be happy with being able to set Euros as the default.

    Would setting up currencies based on country selection be a difficult task (ie would it require alot of code and or seperate files)?

    Thanks in advance for your help.

    Regards,

    -Vincent

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

  2. Designgeneers
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi Vin!

    Thank you! I think this is a great next step for the plugin - adding currency and internationalization.

    I think (but have not tried) that you would need to modify

    dgx_donate_paypalstd_get_hidden_form

    in dgx-donate-paypalstd.php

    you will need to add (say, after the notify_url line) something like

    $output .= "<input type=\"hidden\" name=\"currency_code\" value=\"EUR\" /> ";

    Let me know if that works for you - in a future version I will make it so you can select currencies, countries, etc

  3. elianhi
    Member
    Posted 1 year ago #

    Hi there,
    I tried adding
    $output .= "<input type=\"hidden\" name=\"currency_code\" value=\"EUR\" /> ";
    but does not work. When I get to the PayPal page, is still in USD.

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic