• Resolved Kariboulevrai

    (@kariboulevrai)


    Hello,

    I would like to pre-fill the amount in the pop-up form with the corresponding amount that a person clicks on in the right column donation options (See the linked page). – For example, pre-fill 10 $ when a person clicks on the button “Donner 10 $” on the right column.

    Thank you in advance !

    Robin

    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,

    The best way to do that is with a some url parameters and jQuery. We have a tutorial on doing just that here that I think you could easily adapt to your purposes:

    https://givewp.com/populate-donor-info-one-click/

    Thanks!

    Thread Starter Kariboulevrai

    (@kariboulevrai)

    Thank you !

    That gives me some idea but I still have some problem to implement it for my case. In my case, I use the popup version of the donation plugin. How could I set up an url parameters to make the pop-up appears with the custom amount ?

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    The main difference is going to be that instead of populating that info based on the query URL, you are instead going to want to use jQuery’s on(‘click’) function instead. This is custom development, so a bit out of the scope of our support. But if you put something together and need feedback, provide your snippet as a Gist or Pastebin and I’ll take a look.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pre-filled amount in pop-up’ is closed to new replies.