Confirmation page (after checkout) never shows, redirects to the homepage

BTW, the only way I can show any confirmation is by using this recipe to redirect to a different than your default confirmation page (this is currently off, but works): https://gist.github.com/ipokkel/c9fb4f9bece3814ffa5120c23a61b811

Hello,

Thank you for contacting the Paid Memberships Pro team. I’m sorry to hear about the issue you are facing here.

I would need more information regarding this issue in order to assist you with this as it seems to be site specific.

  1. What payment gateway are you using to accept payments? Does this happen for free levels at all?
  2. Does it only have [pmpro_confirmation] as the shortcode on this page and does this page have a widget of any sort? When you redirect to a custom confirmation page, does that page have the [pmpro_confirmation] on it?
  3. What version of Paid Memberships Pro are you using?

The redirect tries to redirect when the user is logged-out, and it tries to redirect to the login page and redirect back to the confirmation page in the event a visitor tries to view the confirmation page while being logged-out – https://github.com/strangerstudios/paid-memberships-pro/blob/dev/preheaders/confirmation.php#L5-L14

Kind Regards,
Andrew Lima
Director of Operations at Paid Memberships Pro

Hi Andrew,

  • I’m not using any payment gateway – the testing option is turned on (i.e. any payment goes through as a test)
  • I tried only having the shortcode on the page, then I added some text. Makes no difference.
  • I am using PMP version 2.12.10
  • I just tested adding the [pmpro_confirmation] shortcode to a new page that isn’t assigned as the confirmation page – the page shows (doesn’t redirect): https://new.muzom.sk/potvrdenie/
  • I then added this page to the PMP Confirmation page in Settings – it still works
  • the old page still doesn’t work and redirects (even now, when it isn’t assigned as a confirmation page) – which makes me think it isn’t a PMP problem after all. The new page works fine. Even after changing it’s parent page to the one the old page had. The problem probably was with that specific page, rather than with anything PMP related.

To summarise – SOLUTION: Don’t just change the URL of the old page that doesn’t work, but create a completely new page, with the [pmpro_confirmation] shortcode and assign it as the confirmation page in PMP Settings>Pages.

Thanks for pointing me to the right direction 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer