To be clear, my end goal is to add some JavaScript code to the Thank You page. I am trying to wrap my head around how GiveWP works to make this happen but I cannot find any documentation or anything that is actually working from looking through the codebase.
If I add any custom content to my Donation Confirmation page it is never shown. From what I can tell this page is not actually used in any way. What am I missing?
Hi @sccr410,
Happy to clarify.
The Multi-step and Classic form templates load everything via an iframe, including the donation receipt.
The Donation Confirmation page with the [give_receipt] shortcode is still needed because GiveWP checks for the existence of the shortcode to process the donation receipt on all form templates.
The only template that redirects to the Donation Confirmation page after payment is the Legacy form template. Use that instead.
Let me know if you have any other questions.
Thanks for the clarity!
However, why doesn’t any custom content added to the Donation Confirmation pages get used for all the templates?
This is by design. We want the receipt on the Multi-step and Classic templates to be more succinct and only include information that pertains to the donation itself.
Custom content may break the iframe layout which is something we want to avoid.