Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Gewirtz

    (@dgewirtz)

    The current code defaults to the first item being the default. So if your first giving level is $100, then that’s what will be checked.

    You could pound on the actual core code to remove it, but that will break on any update (and there will be updates rapidly). If you were thus inclined (and I promise you that updates will overwrite this), you could go into the dgx-donate.php file and search for:

    $checked = " checked=\"checked\" ";

    Replace it with

    $checked = " checked=\"\" ";

    But again, you’ll have to pay careful attention, back stuff up, etc, because one day, I will send an update to the plugin repository and core code like this will be immediately overwritten.

    That’s all I have for you until 4.0 is complete.

    –David

    Thread Starter lindag99

    (@lindag99)

    Hi David – thanks for this suggestion – I need to pound the actual code, and also install the new code when you finish v4.0.

    But this did not work. I selected:
    Editing seamless-donations/dgx-donate.php (active)
    I backed up the whole file
    I found: $checked = ” checked=\”checked\” “; about 50% in
    I changed it to $checked = ” checked=\”\” “;

    I saved the update
    I purged the cache

    It doesn’t change $100 being the default and now the client is saying that people will feel cheated if they see $100 is already checked.
    https://alzusa.org/?page_id=177

    Is there somewhere else this is also defined?
    Thanks for any further assistance.
    ~Linda

    Plugin Author David Gewirtz

    (@dgewirtz)

    To be honest, I’m not really playing with the old code. I just took a quick look to see if that would help. My strongest recommendation (especially since you’re working with a client) is to use the plugin out of the box as-is, and let the client know that’s just how it works.

    It’s far safer to have reliability than a feature here or there. At some point, you’ll be able to go in and make a change, but for now, I’d recommend living with it.

    In my experience, getting hacky (especially unsupportedly hacky) never ends well.

    –David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I would like no "Default Amount" filed in on radio buttons’ is closed to new replies.