Zen Cart Logo
Forums / Addon Payment Modules / Customizing checkout success page

Customizing checkout success page

Locked

Views: 1,639

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Oct 2006, 4:30 PM
#1
s_p_ike avatar

s_p_ike

Zen Follower

Join Date:
Feb 2005
Location:
Italy
Posts:
178
Plugin Contributions:
0

Customizing checkout success page

I developed 5 payment modules, now I'm working on financing/loan module very similar to a payment module in its logic (it works like a payment gateway).

Main difference is in the response received by the 'gateway'. It's not only OK / KO, there's a third status, let's say 'almost ok'.

For KO status I redirect to checkout_payment as usual, for the other 2 status, I redirect to checkout_process as usual, but I would like to bring a message to the checkout success page, depending on the status (OK or almost OK).

I know how to add a message for the KO status (adding error message to the url), but I think I cannot use same code.

So how to proceed?

I suppose I should start adding my message to $get_append in my module:

zen_redirect(zen_href_link(FILENAME_CHECKOUT_PROCESS, $get_append, 'SSL', true, false));

But how to retrieve it in checkout success page?

Maybe a 'cleaner' way could be using this?

$zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_SUCCESS');

And creating a query which retrieves the response status (I store it, with other info, in a new table)?

The problem is that I haven't understood yet how notifyer system works...

16 Oct 2006, 1:59 PM
#3
s_p_ike avatar

s_p_ike

Zen Follower

Join Date:
Feb 2005
Location:
Italy
Posts:
178
Plugin Contributions:
0

Re: Customizing checkout success page

Hmmm... ok, I didn't want to put a query in a tpl file (the only one I may override, since header of checkout success isn't overridable), but it's the easiest way.
Now I'll try.