Skip to content

Commit

Permalink
Give now sets the default currency as US Dollars on install - fixes #120
Browse files Browse the repository at this point in the history


- also changed fallback for $symbol variable to $
  • Loading branch information
devin committed Apr 29, 2015
1 parent 92d1781 commit c665a0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/forms/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function give_output_donation_levels( $form_id = 0, $args = array() ) {
$variable_pricing = give_has_variable_prices( $form_id );
$allow_custom_amount = get_post_meta( $form_id, '_give_custom_amount', true );
$currency_position = isset( $give_options['currency_position'] ) ? $give_options['currency_position'] : 'before';
$symbol = isset( $give_options['currency'] ) ? give_currency_symbol( $give_options['currency'] ) : 'USD';
$symbol = isset( $give_options['currency'] ) ? give_currency_symbol( $give_options['currency'] ) : '$';
$currency_output = '<span class="give-currency-symbol give-currency-position-' . $currency_position . '">' . $symbol . '</span>';
$default_amount = give_get_default_form_amount( $form_id );
$custom_amount_text = get_post_meta( $form_id, '_give_custom_amount_text', true );
Expand Down
3 changes: 2 additions & 1 deletion includes/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ function give_install() {
}


//Fresh Install? Setup Test Mode, Base Country (US), Test Gateway
//Fresh Install? Setup Test Mode, Base Country (US), Test Gateway, Currency
if ( empty( $current_version ) ) {
$options['base_country'] = 'US';
$options['test_mode'] = 1;
$options['currency'] = 'USD';
$options['gateways']['manual'] = 1;
$options['default_gateway'] = 'manual'; //default is manual

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Version 0.8 is the first release of Give. It's still in beta version so if you f
* New: Two new filters introduced give_default_wrapper_start and give_default_wrapper_end to modify template wrappers
* Fix: Welcome screen CSS issue with WP 4.2+ https://github.com/WordImpress/Give/issues/119
* Fix: Admin Form Creation: Custom Amount Text Field Won't Accept Empty Value https://github.com/WordImpress/Give/issues/72
* Fix: Dollar sign in modal doesn't always work https://github.com/WordImpress/Give/issues/120

= 0.8.6 beta =
* New: Option to "Disable Welcome Screen" added to Settings > Display Options for those users to set if they don't want a welcome screen appearing
Expand Down

0 comments on commit c665a0a

Please sign in to comment.