Redirect user to different thanks page after payment
You can use the Thanks Redirect (thanks-redirect) plugin to set a custom
redirect URL for each product in the admin interface.
If you need more complex logic, add this code to the site.php file:
Am_Di::getInstance()->hook->add(Am_Event::THANKS_PAGE, function (Am_Event $event) { /** @var Invoice|null $invoice */ $invoice = $event->getInvoice(); if (!$invoice || !$invoice->tm_started) { return; }
// Add your custom conditions here. Am_Mvc_Response::redirectLocation('https://example.com/thank-you');});Copyright © 2002–2026 www.amember.com. All Rights Reserved.