0

The website of a client is using an extension for it's payments. The creator of this extension has set the success page of the payments to a CMS-page.

There is one payment method left, which is handled by Magento itself. This payment method ends up on the standard checkout/success page. Is it possible to get that payment method to end up on the same CMS page?

The reason that is wanted is because on the CMS page, cart tracking has been implemented, and the client wants to be able to influence the page content, title and url herself.

2

Just implement an observer, listening to controller_action_predispatch_checkout_onepage_success (check the eventname!)

And then redirect via:

$e = new Mage_Core_Controller_Varien_Exception();
$e->prepareForward('index','error','honeyspam');
throw $e;

An example can for the Observer can be find in HoneySpam and the definition for the event is as always (be careful, this listens to customer_create!

| improve this answer | |
  • Sorry for the late response. I've tried it using this method, however, I have not managed to get the observer working. Though this might be due to my lack of experience with observers. I might check out the working of this some more. Thank you for your time so far. – Sander Koedood Jan 3 '14 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.