Title: Customized Amounts
Last modified: August 30, 2016

---

# Customized Amounts

 *  Resolved [TChachra](https://wordpress.org/support/users/tchachra/)
 * (@tchachra)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/)
 * HI….I want to customize the donation amounts. The not-for-profit I am helping
   accepts donations in various amounts, usually 21, 51, 101, 151, 201…etc….the 
   extra one is an regional superstition… I saw the post by Allendav and with that
   the amounts do change in the settings of the plugin but the page with the shortcode
   does not show the changed amounts….
 * [https://wordpress.org/plugins/seamless-donations/](https://wordpress.org/plugins/seamless-donations/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232727)
 * You can use the hook dgx_donate_giving_levels to replace the elements of the 
   giving levels array. At some point, I’ll make that something you can do in the
   UI, but for now, you can easily just add the filter, intercept the array, and
   blast in your new values.
 * –David
 * P.S. I know it requires some PHP skills, but a quick read on how to use WordPress
   filters should get you started.
 *  Thread Starter [TChachra](https://wordpress.org/support/users/tchachra/)
 * (@tchachra)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232764)
 * I tried the following code:
 * function my_custom_giving_levels( $levels ) {
    return array( 300, 150, 100, 30,
   10 ); }
 * add_filter( ‘dgx_donate_giving_levels’, ‘my_custom_giving_levels’ );
 * I found this on [http://allendav.com/2014/03/06/how-to-customize-giving-levels-in-seamless-donations/](http://allendav.com/2014/03/06/how-to-customize-giving-levels-in-seamless-donations/)
 * It does update the giving levels in the plug-in settings but it does not update
   the amounts on the actual page that has been created with the shortcode…
 * Any thoughts?
 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232790)
 * It should work. I just traced through the code (I didn’t do a full debug pass,
   but on reading the code, it should work). But it relies on the saved giving levels.
   Make sure you go to Form Options and click Save Giving Levels after seeing that
   the levels show up in the Form Options form.
 * Let me know if that helps.
 * –David
 *  Thread Starter [TChachra](https://wordpress.org/support/users/tchachra/)
 * (@tchachra)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232811)
 * Nope….the script does change the amounts in the Form Options…I select the ones
   I want and hit save but the page itself defaults to the standard amounts built
   in to the plug-in….
 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232816)
 * I just made an assumption, but I should double-check… are you using 4.0 or an
   earlier version (is the dashboard icon a palm tree or a gear)?
 * –David
 *  Thread Starter [TChachra](https://wordpress.org/support/users/tchachra/)
 * (@tchachra)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232818)
 * Palmtree…..installed today.
    Version 4.0
 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232841)
 * Okay, I’m thinking that’s a bug. Working on it. Stay tuned.
 *  [Dayāketu](https://wordpress.org/support/users/austmathr/)
 * (@austmathr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232882)
 * Hello!
 * I was looking to another stuff and found something in the plugin code that might
   help.
 * $givingLevels = apply_filters ( ‘seamless_donations_giving_levels’, $builtinGivingLevels);
 * It seems that instead of using `add_filter( 'dgx_donate_giving_levels', 'my_custom_giving_levels');`
   you should use `add_filter( 'seamless_donations_giving_levels', 'my_custom_giving_levels');`
 * Anyways, I’m not sure and have not tested. Just sharing something that might 
   be of use to you.
 *  Thread Starter [TChachra](https://wordpress.org/support/users/tchachra/)
 * (@tchachra)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232886)
 * add_filter( ‘seamless_donations_giving_levels’, ‘my_custom_giving_levels’ );
 * So, the above shows custom levels on the actual page, but not all of them…it 
   cuts off after 3 custom levels.
 * Also, form options defaults back to the built in levels….
 *  Thread Starter [TChachra](https://wordpress.org/support/users/tchachra/)
 * (@tchachra)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232887)
 * The following code seems to work:
 * function my_custom_giving_levels( $levels ) {
    return array( 251, 151, 101, 51,
   21 ); }
 * add_filter( ‘dgx_donate_giving_levels’, ‘my_custom_giving_levels’ );
    add_filter(‘
   seamless_donations_giving_levels’, ‘my_custom_giving_levels’ );
 * —–
    Basically needed to add both filters in order for the levels to show on the
   form options and on the page with the shortcode….
 * I will update you once tested.
 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232890)
 * Yep, that is DEFINITELY a bug. Keep notes on where you made that change, because
   you should only need one filter and when I get the bugfix out, one or the other
   won’t be necessary.
 * –David
 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232955)
 * Normalized the giving level filter. The filter dgx_donate_giving_levels existed
   prior to 4.0. In one location, rather than using the pre-existing filter, a new-
   yet-identical filter, seamless_donations_giving_levels was created. This filter
   was only used in one location and conflicted with dgx_donate_giving_levels. It
   has now been removed. The proper giving levels filter is dgx_donate_giving_levels.
 * This will be available in 4.0.1, probably posted by Monday.
 * –David
 *  [stacyesposito17](https://wordpress.org/support/users/stacyesposito17/)
 * (@stacyesposito17)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232957)
 * I am having an issue with the amounts as well. When I am logged into wordpress
   dashboard my donation levels come up properly on my donation page with my custom
   amounts of 75 and 35 showing. However if I am logged off wordpress and bring 
   up my donation page the amount only shows the level of 100. Why?
 * my custom amounts that I just simply added to the code
    75, 35 in this file seamless-
   donations.php
 * $builtinGivingLevels = array(1000,500,200,100,75,50,35,20,10,5);
 * I also added two lines here in the code. (I don’t know PHP so I am stabbing in
   the dark)
 * if( $noneChecked ) {
    // Select 1000, 500, 100, 50 by default dgx_donate_enable_giving_level(
   1000 ); dgx_donate_enable_giving_level ( 500 ); dgx_donate_enable_giving_level(
   100 ); dgx_donate_enable_giving_level ( 75 ); dgx_donate_enable_giving_level (
   50 ); dgx_donate_enable_giving_level ( 35 ); } This changed the form options 
   and when I checked the amounts on form options and saved and refreshed the page
   I was so happy to see the amounts show on my donation page, but only when I am
   logged into my dashboard. 🙁
 *  Plugin Author [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232968)
 * There is a much, much better way to do this. I recorded a video class on it this
   weekend. Watch the video. It will change how you think about this whole problem:
 * [http://zatzlabs.com/codex/introduction-to-seamless-donations-customization-using-hooks/](http://zatzlabs.com/codex/introduction-to-seamless-donations-customization-using-hooks/)
 * –David
 * P.S. Also, make sure you update to 4.0.1 and do a save on your giving levels.
   Fixed a bug in the hooks.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Customized Amounts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/seamless-donations.svg)
 * [Seamless Donations is Sunset](https://wordpress.org/plugins/seamless-donations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seamless-donations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seamless-donations/)
 * [Active Topics](https://wordpress.org/support/plugin/seamless-donations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seamless-donations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seamless-donations/reviews/)

 * 14 replies
 * 4 participants
 * Last reply from: [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/customized-amounts/#post-6232968)
 * Status: resolved