Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Offline donation – change id

  • Resolved starwars4000

    (@starwars4000)


    How do I change the id of a donation form? I’m talking about the offline form and not the online.

    <input type=”radio” name=”payment-mode” class=”give-gateway” id=”give-gateway-offline-2727-1″ value=”offline”>

    I want to change the id to 2727-2 instead of 1. How do I do it?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    That’s not really possible. All Form IDs are created by WordPress according to the order in which they are created together will all your pages, posts, comments, and any other custom post types.

    But I have a feeling you have an accounting reason for wanting to change that. Can you tell me a bit more about why you need that change? I might be able to give you a better workaround.

    When I click on “Donate now” the href works and it gets to the right place, same works for the “Donate Now, Pay Later” option.

    But I do want that when I click on Donate Now, pay later option, It will also check the pay later option that and will open the other form.

    I found out that this code will do 50% of the job:

    Donate Now, Pay Later

    But I also need to rename give-gateway-offline-2727-1 to give-gateway-offline-2727-2

    But I can’t find where I can edit it. I did find it via Inspect Element, but I can’t find the location of the file in order to change it.

    I found this code via Inspect Element: <input type=”radio” name=”payment-mode” class=”give-gateway” id=”give-gateway-offline-2727-1″ value=”offline”>

    Just need to change it to 2727-2.

    Any Suggestions?

    Plugin Support Ben Meredith

    (@benmeredithgmailcom)

    We’re still not sure what exactly you are trying to do, but it sounds like using two different forms is what would work best, one for the pay not, one for the pay later. Then you can embed both forms in the page with shortcodes or blocks, and even use button display mode so that they pop up with the different forms based on which one the donor clicks.

    As for custom code to change the ID on the link, that’s not something we are able to provide in support. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.